Package 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:
java.io.Serializable
,java.lang.Comparable<CharsetSniffingInputStream.Encoding>
- Enclosing class:
- CharsetSniffingInputStream
public static enum CharsetSniffingInputStream.Encoding extends java.lang.Enum<CharsetSniffingInputStream.Encoding>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
equals(byte[] bom)
boolean
getBom()
java.lang.String
getEncoding()
static CharsetSniffingInputStream.Encoding
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CharsetSniffingInputStream.Encoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getEncoding
public java.lang.String getEncoding()
-
getBom
public boolean getBom()
-
equals
public int equals(byte[] bom)
-
-