Package com.ctc.wstx.io
Class CharsetNames
- java.lang.Object
-
- com.ctc.wstx.io.CharsetNames
-
public final class CharsetNames extends java.lang.ObjectSimple utility class that normalizes given character input character set names into canonical (within Woodstox, anyways) names.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCS_EBCDIC_SUBSETstatic java.lang.StringCS_ISO_LATIN1static java.lang.StringCS_SHIFT_JISstatic java.lang.StringCS_US_ASCIIstatic java.lang.StringCS_UTF16This constants is intentionally vague, so that some other information will be needed to determine the endianness.static java.lang.StringCS_UTF16BEstatic java.lang.StringCS_UTF16LEstatic java.lang.StringCS_UTF32static java.lang.StringCS_UTF32BEstatic java.lang.StringCS_UTF32LEstatic java.lang.StringCS_UTF8
-
Constructor Summary
Constructors Constructor Description CharsetNames()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringfindEncodingFor(java.io.Writer w)Because of legacy encodings used by earlier JDK versions, we need to be careful when accessing encoding names via JDK classes.static java.lang.Stringnormalize(java.lang.String csName)
-
-
-
Field Detail
-
CS_US_ASCII
public static final java.lang.String CS_US_ASCII
- See Also:
- Constant Field Values
-
CS_UTF8
public static final java.lang.String CS_UTF8
- See Also:
- Constant Field Values
-
CS_UTF16
public static final java.lang.String CS_UTF16
This constants is intentionally vague, so that some other information will be needed to determine the endianness.- See Also:
- Constant Field Values
-
CS_UTF16BE
public static final java.lang.String CS_UTF16BE
- See Also:
- Constant Field Values
-
CS_UTF16LE
public static final java.lang.String CS_UTF16LE
- See Also:
- Constant Field Values
-
CS_UTF32
public static final java.lang.String CS_UTF32
- See Also:
- Constant Field Values
-
CS_UTF32BE
public static final java.lang.String CS_UTF32BE
- See Also:
- Constant Field Values
-
CS_UTF32LE
public static final java.lang.String CS_UTF32LE
- See Also:
- Constant Field Values
-
CS_ISO_LATIN1
public static final java.lang.String CS_ISO_LATIN1
- See Also:
- Constant Field Values
-
CS_SHIFT_JIS
public static final java.lang.String CS_SHIFT_JIS
- See Also:
- Constant Field Values
-
CS_EBCDIC_SUBSET
public static final java.lang.String CS_EBCDIC_SUBSET
- See Also:
- Constant Field Values
-
-