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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CharsetNames
public CharsetNames()
normalize
public static String normalize(String csName)
findEncodingFor
public 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.
Copyright © 2011 Codehaus. All Rights Reserved.