All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.CharToByte8859_1
java.lang.Object
|
+----sun.io.CharToByteConverter
|
+----sun.io.CharToByte8859_1
- public class CharToByte8859_1
- extends CharToByteConverter
-
CharToByte8859_1()
-
-
canConvert(char)
- Returns true if the given character can be converted to the
target character encoding.
-
convert(char[], int, int, byte[], int, int)
- Converts an array of Unicode characters into an array of bytes
in the target character encoding.
-
flush(byte[], int, int)
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
-
getCharacterEncoding()
- Returns the character set id for the conversion.
-
getMaxBytesPerChar()
- returns the maximum number of bytes needed to convert a char
-
reset()
- Resets converter to its initial state.
CharToByte8859_1
public CharToByte8859_1()
getCharacterEncoding
public String getCharacterEncoding()
- Returns the character set id for the conversion.
- Overrides:
- getCharacterEncoding in class CharToByteConverter
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
convert
public int convert(char input[],
int inOff,
int inEnd,
byte output[],
int outOff,
int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException
- Converts an array of Unicode characters into an array of bytes
in the target character encoding.
- Overrides:
- convert 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
reset
public void reset()
- Resets converter to its initial state.
- Overrides:
- reset in class CharToByteConverter
getMaxBytesPerChar
public int getMaxBytesPerChar()
- returns the maximum number of bytes needed to convert a char
- Overrides:
- getMaxBytesPerChar in class CharToByteConverter
All Packages Class Hierarchy This Package Previous Next Index