org.apache.abdera.i18n.text.io
Enum CharsetSniffingInputStream.Encoding

java.lang.Object
  extended by java.lang.Enum<CharsetSniffingInputStream.Encoding>
      extended by 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>


Enum Constant Summary
INVALID
           
UTF16be
           
UTF16be2
           
UTF16le
           
UTF16le2
           
UTF32be
           
UTF32be2
           
UTF32le
           
UTF32le2
           
UTF8
           
 
Method Summary
 int equals(byte[] bom)
           
 boolean getBom()
           
 String getEncoding()
           
static CharsetSniffingInputStream.Encoding valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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.