All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.CharToByteCp933
java.lang.Object
|
+----sun.io.CharToByteConverter
|
+----sun.io.CharToByteCp933
- public class CharToByteCp933
- extends CharToByteConverter
-
CharToByteCp933()
-
-
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)
- flush out any residual data and reset the buffer state
-
getCharacterEncoding()
- Return the character set ID
-
getMaxBytesPerChar()
- returns the maximum number of bytes needed to convert a char
-
reset()
- Resets converter to its initial state.
-
setSubstitutionBytes(byte[])
- Sets the substitution bytes to use when the converter is in
substitution mode.
CharToByteCp933
public CharToByteCp933()
flush
public int flush(byte output[],
int outStart,
int outEnd) throws MalformedInputException, ConversionBufferFullException
- flush out any residual data and reset the buffer 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
setSubstitutionBytes
public void setSubstitutionBytes(byte newSubBytes[]) throws IllegalArgumentException
- Sets the substitution bytes to use when the converter is in
substitution mode. The given bytes should represent a valid
character in the target character encoding.
- Overrides:
- setSubstitutionBytes 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
All Packages Class Hierarchy This Package Previous Next Index