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

Variable Index

 o cnsTab1
 o cnsTab2
 o uniTab1
Unicode table
 o uniTab2

Constructor Index

 o CharToByteCNS11643()

Method Index

 o canConvert(char)
Returns true if the given character can be converted to the target character encoding.
 o convert(char[], int, int, byte[], int, int)
Character conversion
 o flush(byte[], int, int)
Writes any remaining output to the output buffer and resets the converter to its initial state.
 o getCharacterEncoding()
Return the character set ID
 o getMaxBytesPerChar()
returns the maximum number of bytes needed to convert a char
 o getNative(char)
 o reset()
Resets converter to its initial state.
 o searchTab(char, char[])

Variables

 o uniTab1
 protected final String uniTab1
Unicode table

 o uniTab2
 protected final String uniTab2
 o cnsTab1
 protected final String cnsTab1
 o cnsTab2
 protected final String cnsTab2

Constructors

 o CharToByteCNS11643
 public CharToByteCNS11643()

Methods

 o 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
 o reset
 public void reset()
Resets converter to its initial state.

Overrides:
reset in class CharToByteConverter
 o 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
 o 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
 o getMaxBytesPerChar
 public int getMaxBytesPerChar()
returns the maximum number of bytes needed to convert a char

Overrides:
getMaxBytesPerChar in class CharToByteConverter
 o getCharacterEncoding
 public String getCharacterEncoding()
Return the character set ID

Overrides:
getCharacterEncoding in class CharToByteConverter
 o getNative
 protected int getNative(char unicode)
 o searchTab
 protected int searchTab(char code,
                         char table[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index