Class CharEncoding
- java.lang.Object
-
- org.apache.commons.lang.CharEncoding
-
@Deprecated(since="2021-04-30") public class CharEncoding extends java.lang.Object
Deprecated.Commons Lang 2 is in maintenance mode. Commons Lang 3 should be used instead.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:
- JRE character encoding names
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ISO_8859_1
Deprecated.ISO Latin Alphabet #1, also known as ISO-LATIN-1.static java.lang.String
US_ASCII
Deprecated.Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set.static java.lang.String
UTF_16
Deprecated.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).static java.lang.String
UTF_16BE
Deprecated.Sixteen-bit Unicode Transformation Format, big-endian byte order.static java.lang.String
UTF_16LE
Deprecated.Sixteen-bit Unicode Transformation Format, little-endian byte order.static java.lang.String
UTF_8
Deprecated.Eight-bit Unicode Transformation Format.
-
Constructor Summary
Constructors Constructor Description CharEncoding()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
isSupported(java.lang.String name)
Deprecated.Returns whether the named charset is supported.
-
-
-
Field Detail
-
ISO_8859_1
public static final java.lang.String ISO_8859_1
Deprecated.ISO Latin Alphabet #1, also known as ISO-LATIN-1.
Every implementation of the Java platform is required to support this character encoding.
-
US_ASCII
public static final java.lang.String US_ASCII
Deprecated.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.
-
UTF_16
public static final java.lang.String UTF_16
Deprecated.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.
-
UTF_16BE
public static final java.lang.String UTF_16BE
Deprecated.Sixteen-bit Unicode Transformation Format, big-endian byte order.
Every implementation of the Java platform is required to support this character encoding.
-
UTF_16LE
public static final java.lang.String UTF_16LE
Deprecated.Sixteen-bit Unicode Transformation Format, little-endian byte order.
Every implementation of the Java platform is required to support this character encoding.
-
UTF_8
public static final java.lang.String UTF_8
Deprecated.Eight-bit Unicode Transformation Format.
Every implementation of the Java platform is required to support this character encoding.
-
-
Method Detail
-
isSupported
public static boolean isSupported(java.lang.String name)
Deprecated.Returns whether the named charset is supported.
This is similar to java.nio.charset.Charset.isSupported(String)
- Parameters:
name
- the name of the requested charset; may be either a canonical name or an alias- Returns:
true
if, and only if, support for the named charset is available in the current Java virtual machine- See Also:
- JRE character encoding names
-
-