com.googlecode.jslint4java
Enum UnicodeBomInputStream.BOM

java.lang.Object
  extended by java.lang.Enum<UnicodeBomInputStream.BOM>
      extended by com.googlecode.jslint4java.UnicodeBomInputStream.BOM
All Implemented Interfaces:
Serializable, Comparable<UnicodeBomInputStream.BOM>
Enclosing class:
UnicodeBomInputStream

public static enum UnicodeBomInputStream.BOM
extends Enum<UnicodeBomInputStream.BOM>


Enum Constant Summary
NONE
           
UTF_16_BE
          UTF-16 big endian BOM
UTF_16_LE
          UTF-16 little endian BOM
UTF_32_BE
          UTF-32 big endian BOM
UTF_32_LE
          UTF-32 little endian BOM
UTF_8
          UTF-8 BOM
 
Method Summary
 byte[] getBytes()
           
 String getDescription()
           
 String toString()
           
static UnicodeBomInputStream.BOM valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UnicodeBomInputStream.BOM[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final UnicodeBomInputStream.BOM NONE

UTF_8

public static final UnicodeBomInputStream.BOM UTF_8
UTF-8 BOM


UTF_16_LE

public static final UnicodeBomInputStream.BOM UTF_16_LE
UTF-16 little endian BOM


UTF_16_BE

public static final UnicodeBomInputStream.BOM UTF_16_BE
UTF-16 big endian BOM


UTF_32_LE

public static final UnicodeBomInputStream.BOM UTF_32_LE
UTF-32 little endian BOM


UTF_32_BE

public static final UnicodeBomInputStream.BOM UTF_32_BE
UTF-32 big endian BOM

Method Detail

values

public static UnicodeBomInputStream.BOM[] 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 (UnicodeBomInputStream.BOM c : UnicodeBomInputStream.BOM.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UnicodeBomInputStream.BOM 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

getBytes

public byte[] getBytes()

getDescription

public String getDescription()

toString

public String toString()
Overrides:
toString in class Enum<UnicodeBomInputStream.BOM>


Copyright © 2007-2012. All Rights Reserved.