Package com.ctc.wstx.io
Class CharsetNames
- java.lang.Object
-
- com.ctc.wstx.io.CharsetNames
-
public final class CharsetNames extends Object
Simple 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 String
CS_EBCDIC_SUBSET
static String
CS_ISO_LATIN1
static String
CS_SHIFT_JIS
static String
CS_US_ASCII
static String
CS_UTF16
This constants is intentionally vague, so that some other information will be needed to determine the endianness.static String
CS_UTF16BE
static String
CS_UTF16LE
static String
CS_UTF32
static String
CS_UTF32BE
static String
CS_UTF32LE
static String
CS_UTF8
-
Constructor Summary
Constructors Constructor Description CharsetNames()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
findEncodingFor(Writer w)
Because of legacy encodings used by earlier JDK versions, we need to be careful when accessing encoding names via JDK classes.static String
normalize(String csName)
-
-
-
Field Detail
-
CS_US_ASCII
public static final String CS_US_ASCII
- See Also:
- Constant Field Values
-
CS_UTF8
public static final String CS_UTF8
- See Also:
- Constant Field Values
-
CS_UTF16
public static final 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 String CS_UTF16BE
- See Also:
- Constant Field Values
-
CS_UTF16LE
public static final String CS_UTF16LE
- See Also:
- Constant Field Values
-
CS_UTF32
public static final String CS_UTF32
- See Also:
- Constant Field Values
-
CS_UTF32BE
public static final String CS_UTF32BE
- See Also:
- Constant Field Values
-
CS_UTF32LE
public static final String CS_UTF32LE
- See Also:
- Constant Field Values
-
CS_ISO_LATIN1
public static final String CS_ISO_LATIN1
- See Also:
- Constant Field Values
-
CS_SHIFT_JIS
public static final String CS_SHIFT_JIS
- See Also:
- Constant Field Values
-
CS_EBCDIC_SUBSET
public static final String CS_EBCDIC_SUBSET
- See Also:
- Constant Field Values
-
-