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


Constructor Index

 o ByteToCharUTF8()

Method Index

 o convert(byte[], int, int, char[], int, int)
Character converson
 o flush(char[], int, int)
Writes any remaining output to the output buffer and resets the converter to its initial state.
 o getCharacterEncoding()
Returns the character set id for the conversion
 o reset()
Resets converter to its initial state.

Constructors

 o ByteToCharUTF8
 public ByteToCharUTF8()

Methods

 o 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
 o 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
 o getCharacterEncoding
 public String getCharacterEncoding()
Returns the character set id for the conversion

Overrides:
getCharacterEncoding in class ByteToCharConverter
 o reset
 public void reset()
Resets converter to its initial state.

Overrides:
reset in class ByteToCharConverter

All Packages  Class Hierarchy  This Package  Previous  Next  Index