Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.util

Class UnicodeEncoding

com.gentleware.services.util.UnicodeEncoding

public class UnicodeEncoding


Unicode Byte Order Marker represents a specific character encoding like utf-8 or utf-16le.


 Attribute Summary
private static byte[]  BOM_UTF_16BE
 
private static byte[]  BOM_UTF_16LE
 
private static byte[]  BOM_UTF_32BE
 
private static byte[]  BOM_UTF_32LE
 
private static byte[]  BOM_UTF_8
 
public static UnicodeEncoding  UTF_16BE
 
public static UnicodeEncoding  UTF_16LE
 
public static UnicodeEncoding  UTF_32BE
 
public static UnicodeEncoding  UTF_32LE
 
public static UnicodeEncoding  UTF_8
 
private byte[]  _bom
 
private String  _charsetName
 
private static List  _encodings
 
private static int  _maxBomLength
 
arrow_up
 

 Association Summary
public UnicodeProperties  unicodeProperties
 
arrow_up
 

 Constructor Summary
private   UnicodeEncoding(String charsetName, byte[] bytes)
 
arrow_up
 

 Method Summary
private static boolean   arrayStartsWith(byte[] array, byte[] start)
 
public byte[]   getBom()
 
public String   getCharsetName()
 
public static UnicodeEncoding   readBom(InputStream inputStream, UnicodeEncoding defaultEncoding)
 
public String   toString()
 
public void   writeBom(OutputStream outputStream)
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

BOM_UTF_16BE

private static byte[] BOM_UTF_16BE

arrow_up


BOM_UTF_16LE

private static byte[] BOM_UTF_16LE

arrow_up


BOM_UTF_32BE

private static byte[] BOM_UTF_32BE

arrow_up


BOM_UTF_32LE

private static byte[] BOM_UTF_32LE

arrow_up


BOM_UTF_8

private static byte[] BOM_UTF_8

arrow_up


UTF_16BE

public static UnicodeEncoding UTF_16BE

arrow_up


UTF_16LE

public static UnicodeEncoding UTF_16LE

arrow_up


UTF_32BE

public static UnicodeEncoding UTF_32BE

arrow_up


UTF_32LE

public static UnicodeEncoding UTF_32LE

arrow_up


UTF_8

public static UnicodeEncoding UTF_8

arrow_up


_bom

private byte[] _bom

arrow_up


_charsetName

private String _charsetName

arrow_up


_encodings

private static List _encodings

arrow_up


_maxBomLength

private static int _maxBomLength

arrow_up
 Association Detail

unicodeProperties

public UnicodeProperties unicodeProperties

arrow_up
 Constructor Detail

UnicodeEncoding

private UnicodeEncoding UnicodeEncoding(String charsetName, byte[] bytes)

Parameters:
charsetName -
bytes -
Returns:
arrow_up
 Method Detail

arrayStartsWith

private static boolean arrayStartsWith(byte[] array, byte[] start)

Parameters:
array -
start -
Returns:
arrow_up


getBom

public byte[] getBom()

Returns:
arrow_up


getCharsetName

public String getCharsetName()

Returns:
arrow_up


readBom

public static UnicodeEncoding readBom(InputStream inputStream, UnicodeEncoding defaultEncoding)

Parameters:
inputStream -
defaultEncoding -
Returns:
arrow_up


toString

public String toString()

Returns:
arrow_up


writeBom

public void writeBom(OutputStream outputStream)

Parameters:
outputStream -
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.