org.pentaho.platform.dataaccess.datasource.wizard.csv
Class UnicodeBOMInputStream.BOM

java.lang.Object
  extended by org.pentaho.platform.dataaccess.datasource.wizard.csv.UnicodeBOMInputStream.BOM
Enclosing class:
UnicodeBOMInputStream

public static final class UnicodeBOMInputStream.BOM
extends Object

Type safe enumeration class that describes the different types of Unicode BOMs.


Field Summary
static UnicodeBOMInputStream.BOM NONE
          NONE.
static UnicodeBOMInputStream.BOM UTF_16_BE
          UTF-16, big-endian (FE FF).
static UnicodeBOMInputStream.BOM UTF_16_LE
          UTF-16, little-endian (FF FE).
static UnicodeBOMInputStream.BOM UTF_32_BE
          UTF-32, big-endian (00 00 FE FF).
static UnicodeBOMInputStream.BOM UTF_32_LE
          UTF-32, little-endian (FF FE 00 00).
static UnicodeBOMInputStream.BOM UTF_8
          UTF-8 BOM (EF BB BF).
 
Method Summary
 byte[] getBytes()
          Returns the bytes corresponding to this BOM value.
 String toString()
          Returns a String representation of this BOM value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final UnicodeBOMInputStream.BOM NONE
NONE.


UTF_8

public static final UnicodeBOMInputStream.BOM UTF_8
UTF-8 BOM (EF BB BF).


UTF_16_LE

public static final UnicodeBOMInputStream.BOM UTF_16_LE
UTF-16, little-endian (FF FE).


UTF_16_BE

public static final UnicodeBOMInputStream.BOM UTF_16_BE
UTF-16, big-endian (FE FF).


UTF_32_LE

public static final UnicodeBOMInputStream.BOM UTF_32_LE
UTF-32, little-endian (FF FE 00 00).


UTF_32_BE

public static final UnicodeBOMInputStream.BOM UTF_32_BE
UTF-32, big-endian (00 00 FE FF).

Method Detail

toString

public final String toString()
Returns a String representation of this BOM value.

Overrides:
toString in class Object

getBytes

public final byte[] getBytes()
Returns the bytes corresponding to this BOM value.