com.perforce.p4java.impl.mapbased.rpc.sys
Class RpcUnicodeInputStream.BOM

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.rpc.sys.RpcUnicodeInputStream.BOM
Enclosing class:
RpcUnicodeInputStream

public static final class RpcUnicodeInputStream.BOM
extends Object

Types of Unicode BOMs.


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

Field Detail

NONE

public static final RpcUnicodeInputStream.BOM NONE
Default to no BOM.


UTF_8

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


UTF_16_LE

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


UTF_16_BE

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


UTF_32_LE

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


UTF_32_BE

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

Method Detail

toString

public final String toString()
Returns the string representation of this BOM.

Overrides:
toString in class Object

getBytes

public final byte[] getBytes()
Returns the bytes of this BOM.



Copyright © 2015 Perforce Software. All Rights Reserved.