All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.CharToByteCNS11643
java.lang.Object
|
+----sun.io.CharToByteConverter
|
+----sun.io.CharToByteCNS11643
- public class CharToByteCNS11643
- extends CharToByteConverter
-
cnsTab1
-
-
cnsTab2
-
-
uniTab1
- Unicode table
-
uniTab2
-
-
CharToByteCNS11643()
-
-
canConvert(char)
- Returns true if the given character can be converted to the
target character encoding.
-
convert(char[], int, int, byte[], int, int)
- Character conversion
-
flush(byte[], int, int)
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
-
getCharacterEncoding()
- Return the character set ID
-
getMaxBytesPerChar()
- returns the maximum number of bytes needed to convert a char
-
getNative(char)
-
-
reset()
- Resets converter to its initial state.
-
searchTab(char, char[])
-
uniTab1
protected final String uniTab1
- Unicode table
uniTab2
protected final String uniTab2
cnsTab1
protected final String cnsTab1
cnsTab2
protected final String cnsTab2
CharToByteCNS11643
public CharToByteCNS11643()
flush
public int flush(byte 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 CharToByteConverter
reset
public void reset()
- Resets converter to its initial state.
- Overrides:
- reset in class CharToByteConverter
canConvert
public boolean canConvert(char ch)
- Returns true if the given character can be converted to the
target character encoding.
- Overrides:
- canConvert in class CharToByteConverter
convert
public int convert(char input[],
int inOff,
int inEnd,
byte output[],
int outOff,
int outEnd) throws UnknownCharacterException, MalformedInputException, ConversionBufferFullException
- Character conversion
- Overrides:
- convert in class CharToByteConverter
getMaxBytesPerChar
public int getMaxBytesPerChar()
- returns the maximum number of bytes needed to convert a char
- Overrides:
- getMaxBytesPerChar in class CharToByteConverter
getCharacterEncoding
public String getCharacterEncoding()
- Return the character set ID
- Overrides:
- getCharacterEncoding in class CharToByteConverter
getNative
protected int getNative(char unicode)
searchTab
protected int searchTab(char code,
char table[])
All Packages Class Hierarchy This Package Previous Next Index