org.apache.abdera.i18n.text.io
Enum CharsetSniffingInputStream.Encoding
java.lang.Object
java.lang.Enum<CharsetSniffingInputStream.Encoding>
org.apache.abdera.i18n.text.io.CharsetSniffingInputStream.Encoding
- All Implemented Interfaces:
- Serializable, Comparable<CharsetSniffingInputStream.Encoding>
- Enclosing class:
- CharsetSniffingInputStream
public static enum CharsetSniffingInputStream.Encoding
- extends Enum<CharsetSniffingInputStream.Encoding>
UTF32be
public static final CharsetSniffingInputStream.Encoding UTF32be
UTF32le
public static final CharsetSniffingInputStream.Encoding UTF32le
INVALID
public static final CharsetSniffingInputStream.Encoding INVALID
UTF16be
public static final CharsetSniffingInputStream.Encoding UTF16be
UTF16le
public static final CharsetSniffingInputStream.Encoding UTF16le
UTF8
public static final CharsetSniffingInputStream.Encoding UTF8
UTF32be2
public static final CharsetSniffingInputStream.Encoding UTF32be2
UTF32le2
public static final CharsetSniffingInputStream.Encoding UTF32le2
UTF16be2
public static final CharsetSniffingInputStream.Encoding UTF16be2
UTF16le2
public static final CharsetSniffingInputStream.Encoding UTF16le2
values
public static CharsetSniffingInputStream.Encoding[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CharsetSniffingInputStream.Encoding c : CharsetSniffingInputStream.Encoding.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CharsetSniffingInputStream.Encoding valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getEncoding
public String getEncoding()
getBom
public boolean getBom()
equals
public int equals(byte[] bom)
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.