com.stimulsoft.lib.io
Class StiUnicodeBOMInputStream.BOM

java.lang.Object
  extended by com.stimulsoft.lib.io.StiUnicodeBOMInputStream.BOM
Enclosing class:
StiUnicodeBOMInputStream

public static final class StiUnicodeBOMInputStream.BOM
extends java.lang.Object


Field Summary
static StiUnicodeBOMInputStream.BOM NONE
          NONE.
static StiUnicodeBOMInputStream.BOM UTF_16_BE
          UTF-16, big-endian (FE FF).
static StiUnicodeBOMInputStream.BOM UTF_16_LE
          UTF-16, little-endian (FF FE).
static StiUnicodeBOMInputStream.BOM UTF_32_BE
          UTF-32, big-endian (00 00 FE FF).
static StiUnicodeBOMInputStream.BOM UTF_32_LE
          UTF-32, little-endian (FF FE 00 00).
static StiUnicodeBOMInputStream.BOM UTF_8
          UTF-8 BOM (EF BB BF).
 
Method Summary
 byte[] getBytes()
          Returns the bytes corresponding to this BOM value.
 java.lang.String getDescription()
           
 java.lang.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 StiUnicodeBOMInputStream.BOM NONE
NONE.


UTF_8

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


UTF_16_LE

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


UTF_16_BE

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


UTF_32_LE

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


UTF_32_BE

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

Method Detail

toString

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

Overrides:
toString in class java.lang.Object

getBytes

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


getDescription

public java.lang.String getDescription()
Returns:
the description