net.authorize.util
Class BOMStripperInputStream.BOM

java.lang.Object
  extended by net.authorize.util.BOMStripperInputStream.BOM
Enclosing class:
BOMStripperInputStream

public static final class BOMStripperInputStream.BOM
extends Object

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


Field Summary
static BOMStripperInputStream.BOM NONE
          NONE.
static BOMStripperInputStream.BOM UTF_16_BE
          UTF-16, big-endian (FE FF).
static BOMStripperInputStream.BOM UTF_16_LE
          UTF-16, little-endian (FF FE).
static BOMStripperInputStream.BOM UTF_32_BE
          UTF-32, big-endian (00 00 FE FF).
static BOMStripperInputStream.BOM UTF_32_LE
          UTF-32, little-endian (FF FE 00 00).
static BOMStripperInputStream.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final BOMStripperInputStream.BOM NONE
NONE.


UTF_8

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


UTF_16_LE

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


UTF_16_BE

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


UTF_32_LE

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


UTF_32_BE

public static final BOMStripperInputStream.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.



Copyright © 2014. All Rights Reserved.