CharEncoding¶
- @Deprecated public class org.apache.commons.lang3.CharEncoding[source]¶
Deprecated: Java 7 introduced
StandardCharsets, which defines these constants asCharsetobjects. UseCharset.name()to get the string values provided in this class. This class will be removed in a future release.Character encoding names required of every implementation of the Java platform.
According to JRE character encoding names:
Every implementation of the Java platform is required to support the following character encodings. Consult the release documentation for your implementation to see if any other encodings are supported.
- Since:
2.1
- See also:
Constructors¶
Deprecated. Constructs a new instance. |
- @Deprecated public CharEncoding()[source]¶
Deprecated: Will be removed in 4.0.0.
Constructs a new instance.
Fields and constants¶
|
ISO Latin Alphabet #1, also known as ISO-LATIN-1. |
|
|
Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set. |
|
|
Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order accepted on input, big-endian used on output). |
|
|
Sixteen-bit Unicode Transformation Format, big-endian byte order. |
|
|
Sixteen-bit Unicode Transformation Format, little-endian byte order. |
|
|
Eight-bit Unicode Transformation Format. |
- public static final String ISO_8859_1[source]¶
ISO Latin Alphabet #1, also known as ISO-LATIN-1.
Every implementation of the Java platform is required to support this character encoding.
- public static final String US_ASCII[source]¶
Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set.
Every implementation of the Java platform is required to support this character encoding.
- public static final String UTF_16[source]¶
Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order accepted on input, big-endian used on output).
Every implementation of the Java platform is required to support this character encoding.
- public static final String UTF_16BE[source]¶
Sixteen-bit Unicode Transformation Format, big-endian byte order.
Every implementation of the Java platform is required to support this character encoding.
Methods¶
|
Deprecated. Tests whether the named charset is supported. |
- @Deprecated public static boolean isSupported(String name)[source]¶
Deprecated: Please use
Charset.isSupported(String)instead, although be aware thatnullvalues are not accepted by that method and anIllegalCharsetNameExceptionmay be thrown.Tests whether the named charset is supported.
This is similar to java.nio.charset.Charset.isSupported(String) but handles more formats
- Parameters:
name – The name of the requested charset; may be either a canonical name or an alias, null returns false
- Returns:
trueif the charset is available in the current Java virtual machine