All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.ByteToCharUTF8
java.lang.Object
|
+----sun.io.ByteToCharConverter
|
+----sun.io.ByteToCharUTF8
- public class ByteToCharUTF8
- extends ByteToCharConverter
UCS Transformation Format 8 (UTF-8) -> UCS2 (UTF16) converter
see CharToByteUTF8.java about UTF-8 format
-
ByteToCharUTF8()
-
-
convert(byte[], int, int, char[], int, int)
- Character converson
-
flush(char[], 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
-
reset()
- Resets converter to its initial state.
ByteToCharUTF8
public ByteToCharUTF8()
flush
public int flush(char output[],
int outStart,
int outEnd) throws MalformedInputException
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
- Overrides:
- flush in class ByteToCharConverter
convert
public int convert(byte input[],
int inOff,
int inEnd,
char output[],
int outOff,
int outEnd) throws MalformedInputException, ConversionBufferFullException
- Character converson
- Overrides:
- convert in class ByteToCharConverter
getCharacterEncoding
public String getCharacterEncoding()
- Returns the character set id for the conversion
- Overrides:
- getCharacterEncoding in class ByteToCharConverter
reset
public void reset()
- Resets converter to its initial state.
- Overrides:
- reset in class ByteToCharConverter
All Packages Class Hierarchy This Package Previous Next Index