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
-
ByteToCharUnicode()
-
-
convert(byte[], int, int, char[], int, int)
-
-
flush(char[], int, int)
-
-
getCharacterEncoding()
-
-
reset()
-
ByteToCharUnicode
public ByteToCharUnicode()
getCharacterEncoding
public String getCharacterEncoding()
convert
public int convert(byte in[],
int inOff,
int inEnd,
char out[],
int outOff,
int outEnd) throws ConversionBufferFullException, MalformedInputException
reset
public void reset()
flush
public int flush(char buf[],
int off,
int len) throws MalformedInputException
All Packages Class Hierarchy This Package Previous Next Index