All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.io.CharToByteKSC5601

java.lang.Object
   |
   +----sun.io.CharToByteConverter
           |
           +----sun.io.CharToByteKSC5601

public class CharToByteKSC5601
extends CharToByteConverter

Variable Index

 o kscTab
KSC 5601 table
 o unicodeTab
Unicode table

Constructor Index

 o CharToByteKSC5601()

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 convertHangul(char[], int, int, byte[], int, int)
 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 getEUC(char)
 o getMaxBytesPerChar()
returns the maximum number of bytes needed to convert a char
 o reset()
Resets converter to its initial state.

Variables

 o kscTab
 protected final String kscTab
KSC 5601 table

 o unicodeTab
 protected final String unicodeTab
Unicode table

Constructors

 o CharToByteKSC5601
 public CharToByteKSC5601()

Methods

 o flush
 public int flush(byte output[],
                  int outStart,
                  int outEnd) throws MalformedInputException, ConversionBufferFullException
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 convertHangul
 public int convertHangul(char input[],
                          int inOff,
                          int inEnd,
                          byte output[],
                          int outOff,
                          int outEnd) throws UnknownCharacterException, MalformedInputException, ConversionBufferFullException
 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 getEUC
 protected int getEUC(char unicode)

All Packages  Class Hierarchy  This Package  Previous  Next  Index