All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.util.ByteToCharUnicode

netscape.security.util.ByteToCharUnicode

public class ByteToCharUnicode
Convert byte arrays containing Unicode characters into arrays of actual Unicode characters, sensing the byte order automatically. To force a particular byte order, use either the "UnicodeBig" or the "UnicodeLittle" encoding. If the first character is a byte order mark, it will be interpreted and discarded. Otherwise, the byte order is assumed to be BigEndian. Either way, the byte order is decided by the first character. Later byte order marks will be passed through as characters (if they indicate the same byte order) or will cause an error (if they indicate the other byte order).

See Also:
ByteToCharUnicodeLittle, ByteToCharUnicodeBig

Constructor Index

 o ByteToCharUnicode()

Method Index

 o convert(byte[], int, int, char[], int, int)
 o flush(char[], int, int)
 o getCharacterEncoding()
 o reset()

Constructors

 o ByteToCharUnicode
 public ByteToCharUnicode()

Methods

 o getCharacterEncoding
 public String getCharacterEncoding()
 o convert
 public int convert(byte in[],
                    int inOff,
                    int inEnd,
                    char out[],
                    int outOff,
                    int outEnd) throws ConversionBufferFullException, MalformedInputException
 o reset
 public void reset()
 o flush
 public int flush(char buf[],
                  int off,
                  int len) throws MalformedInputException

All Packages  Class Hierarchy  This Package  Previous  Next  Index