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=9.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,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
CultureNotFoundException,
OutOfMemoryException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionOutOfMemoryExceptionArgumentNullExceptionpublic CultureInfo(int culture,
boolean useUserOverride)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionpublic 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,
OutOfMemoryException,
IndexOutOfRangeException,
CultureNotFoundException
public CultureInfo(java.lang.String name,
boolean useUserOverride)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
OutOfMemoryException,
IndexOutOfRangeException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionpublic 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,
OutOfMemoryException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NullReferenceException,
NotSupportedException
public NetObject Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, TypeInitializationException, NullReferenceException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionTypeInitializationExceptionNullReferenceExceptionpublic static CultureInfo CreateSpecificCulture(java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException
public Calendar getCalendar() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OutOfMemoryException, CultureNotFoundException, TypeInitializationException, SecurityException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionCultureNotFoundExceptionTypeInitializationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionpublic 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, ArgumentNullException, OutOfMemoryException, NotSupportedException, InvalidOperationException, CultureNotFoundException
public static CultureInfo GetCultureInfo(int culture) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, CultureNotFoundException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionNullReferenceExceptionCultureNotFoundExceptionOutOfMemoryExceptionpublic static CultureInfo GetCultureInfo(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException, CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic 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
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionpublic 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, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNullReferenceExceptionCultureNotFoundExceptionFormatExceptionpublic static CultureInfo GetCultureInfoByIetfLanguageTag(java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, CultureNotFoundException, ArgumentNullException, NullReferenceException, OutOfMemoryException, RankException, ArrayTypeMismatchException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionFormatExceptionCultureNotFoundExceptionArgumentNullExceptionNullReferenceExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionpublic static CultureInfo[] GetCultures(CultureTypes types) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException
public CultureTypes getCultureTypes() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, RankException, ArrayTypeMismatchException, CultureNotFoundException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionpublic static CultureInfo getCurrentCulture() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, ArgumentException, InvalidOperationException, CultureNotFoundException, 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,
PlatformNotSupportedException,
NotSupportedException,
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,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionpublic static CultureInfo getInstalledUICulture() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, ArgumentException, InvalidOperationException, CultureNotFoundException, 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, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, IndexOutOfRangeException
public final Calendar[] getOptionalCalendars() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, CultureNotFoundException, TypeInitializationException, SecurityException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionTypeInitializationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionpublic CultureInfo getParent() throws java.lang.Throwable, NotSupportedException, ArgumentException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, RankException, ArrayTypeMismatchException, NullReferenceException
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