public class CultureInfo extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Globalization.CultureInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
CultureInfo() |
CultureInfo(int culture) |
CultureInfo(int culture,
boolean useUserOverride) |
CultureInfo(java.lang.Object instance)
Internal constructor.
|
CultureInfo(java.lang.String name) |
CultureInfo(java.lang.String name,
boolean useUserOverride) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public CultureInfo()
throws java.lang.Throwable
java.lang.Throwablepublic CultureInfo(int culture)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
CultureNotFoundException,
NullReferenceException,
OutOfMemoryException,
ExternalException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionpublic CultureInfo(int culture,
boolean useUserOverride)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException,
ExternalException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionpublic CultureInfo(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic CultureInfo(java.lang.String name)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
CultureNotFoundException
public CultureInfo(java.lang.String name,
boolean useUserOverride)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CultureNotFoundException,
NullReferenceException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCultureNotFoundExceptionNullReferenceExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionpublic static CultureInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into CultureInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCultureInfo instancejava.lang.Throwable - in case of error during cast operationpublic void ClearCachedData()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
PlatformNotSupportedException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
IndexOutOfRangeException,
ArrayTypeMismatchException
public NetObject Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, NullReferenceException
public static CultureInfo CreateSpecificCulture(java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionpublic Calendar getCalendar() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OutOfMemoryException, CultureNotFoundException, TypeInitializationException, SecurityException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionCultureNotFoundExceptionTypeInitializationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionpublic CompareInfo getCompareInfo() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, NotSupportedException, NullReferenceException, CultureNotFoundException
public CultureInfo GetConsoleFallbackUICulture() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, CultureNotFoundException, OutOfMemoryException
public static CultureInfo GetCultureInfo(int culture) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, CultureNotFoundException, OutOfMemoryException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionNullReferenceExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionpublic static CultureInfo GetCultureInfo(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, CultureNotFoundException, OutOfMemoryException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionpublic static CultureInfo GetCultureInfo(java.lang.String name, boolean predefinedOnly) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionpublic static CultureInfo GetCultureInfo(java.lang.String name, java.lang.String altName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, NullReferenceException, CultureNotFoundException, ExternalException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNullReferenceExceptionCultureNotFoundExceptionExternalExceptionFormatExceptionpublic static CultureInfo GetCultureInfoByIetfLanguageTag(java.lang.String name) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentNullException, InvalidOperationException, FormatException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, RankException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionArgumentNullExceptionInvalidOperationExceptionFormatExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionRankExceptionpublic static CultureInfo[] GetCultures(CultureTypes types) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException
public CultureTypes getCultureTypes() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, RankException, ArrayTypeMismatchException, CultureNotFoundException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionpublic static CultureInfo getCurrentCulture() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, OutOfMemoryException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NullReferenceException, NotSupportedException
public static CultureInfo getCurrentUICulture() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, CultureNotFoundException, NullReferenceException
public DateTimeFormatInfo getDateTimeFormat() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, CultureNotFoundException, TypeInitializationException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, OutOfMemoryException, NullReferenceException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionTypeInitializationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionOutOfMemoryExceptionNullReferenceExceptionpublic static CultureInfo getDefaultThreadCurrentCulture() throws java.lang.Throwable
java.lang.Throwablepublic static CultureInfo getDefaultThreadCurrentUICulture() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getDisplayName()
throws java.lang.Throwable,
OutOfMemoryException,
NotSupportedException,
PlatformNotSupportedException,
ArgumentException,
CultureNotFoundException,
NullReferenceException,
IndexOutOfRangeException,
ExternalException,
ArgumentOutOfRangeException
public java.lang.String getEnglishName()
throws java.lang.Throwable,
OutOfMemoryException,
PlatformNotSupportedException,
NotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArgumentException
public NetObject GetFormat(NetType formatType) throws java.lang.Throwable, OutOfMemoryException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NotSupportedException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArrayTypeMismatchException, RankException, InvalidCastException, TypeInitializationException
java.lang.ThrowableOutOfMemoryExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionRankExceptionInvalidCastExceptionTypeInitializationExceptionpublic java.lang.String getIetfLanguageTag()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionpublic static CultureInfo getInstalledUICulture() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, OutOfMemoryException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NullReferenceException, NotSupportedException
public static CultureInfo getInvariantCulture() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsNeutralCulture()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic int getKeyboardLayoutId()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionpublic int getLCID()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
NotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getNativeName()
throws java.lang.Throwable,
OutOfMemoryException,
PlatformNotSupportedException,
NotSupportedException
java.lang.ThrowableOutOfMemoryExceptionPlatformNotSupportedExceptionNotSupportedExceptionpublic NumberFormatInfo getNumberFormat() throws java.lang.Throwable, OutOfMemoryException, NotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, IndexOutOfRangeException
public final Calendar[] getOptionalCalendars() throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, CultureNotFoundException, TypeInitializationException, SecurityException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionTypeInitializationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionpublic CultureInfo getParent() throws java.lang.Throwable, NotSupportedException, ArgumentException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, NullReferenceException, ExternalException, ArgumentNullException
public TextInfo getTextInfo() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionpublic java.lang.String getThreeLetterISOLanguageName()
throws java.lang.Throwable,
OutOfMemoryException,
PlatformNotSupportedException
java.lang.ThrowableOutOfMemoryExceptionPlatformNotSupportedExceptionpublic java.lang.String getThreeLetterWindowsLanguageName()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
NotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic java.lang.String getTwoLetterISOLanguageName()
throws java.lang.Throwable,
OutOfMemoryException,
PlatformNotSupportedException
java.lang.ThrowableOutOfMemoryExceptionPlatformNotSupportedExceptionpublic boolean getUseUserOverride()
throws java.lang.Throwable
java.lang.Throwablepublic static CultureInfo ReadOnly(CultureInfo ci) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionNullReferenceExceptionpublic static void setCurrentCulture(CultureInfo CurrentCulture) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
public static void setCurrentUICulture(CultureInfo CurrentUICulture) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException
public void setDateTimeFormat(DateTimeFormatInfo DateTimeFormat) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static void setDefaultThreadCurrentCulture(CultureInfo DefaultThreadCurrentCulture) throws java.lang.Throwable
java.lang.Throwablepublic static void setDefaultThreadCurrentUICulture(CultureInfo DefaultThreadCurrentUICulture) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setNumberFormat(NumberFormatInfo NumberFormat) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException