All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.CharToByteUnicode
java.lang.Object
|
+----sun.io.CharToByteConverter
|
+----sun.io.CharToByteUnicode
- public class CharToByteUnicode
- extends CharToByteConverter
Convert arrays containing Unicode characters into arrays of bytes, using the
platform-default byte order.
-
byteOrder
-
-
marked
-
-
CharToByteUnicode()
-
-
convert(char[], int, int, byte[], int, int)
- Converts an array of Unicode characters into an array of bytes
in the target character encoding.
-
flush(byte[], int, int)
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
-
getCharacterEncoding()
- Returns the character set id for the conversion.
-
getMaxBytesPerChar()
- Returns the maximum number of bytes needed to convert a char.
-
reset()
- Resets converter to its initial state.
marked
protected boolean marked
byteOrder
protected int byteOrder
CharToByteUnicode
public CharToByteUnicode()
getCharacterEncoding
public String getCharacterEncoding()
- Returns the character set id for the conversion.
- Overrides:
- getCharacterEncoding in class CharToByteConverter
convert
public int convert(char in[],
int inOff,
int inEnd,
byte out[],
int outOff,
int outEnd) throws ConversionBufferFullException, MalformedInputException
- Converts an array of Unicode characters into an array of bytes
in the target character encoding.
- Overrides:
- convert in class CharToByteConverter
flush
public int flush(byte in[],
int inOff,
int inEnd)
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
- Overrides:
- flush in class CharToByteConverter
reset
public void reset()
- Resets converter to its initial state.
- Overrides:
- reset in class CharToByteConverter
getMaxBytesPerChar
public int getMaxBytesPerChar()
- Returns the maximum number of bytes needed to convert a char.
- Overrides:
- getMaxBytesPerChar in class CharToByteConverter
All Packages Class Hierarchy This Package Previous Next Index