| java.lang.Object sun.io.ByteToCharConverter sun.io.ByteToCharSingleByte
All known Subclasses: sun.io.ByteToCharCp875, sun.io.ByteToCharCp1098, sun.io.ByteToCharCp1006, sun.io.ByteToCharCp1250, sun.io.ByteToCharCp1144, sun.io.ByteToCharCp1124, sun.io.ByteToCharMacTurkish, sun.io.ByteToCharCp1026, sun.io.ByteToCharCp1046, sun.io.ByteToCharCp1255, sun.io.ByteToCharCp850, sun.io.ByteToCharCp918, sun.io.ByteToCharCp285, sun.io.ByteToCharMacArabic, sun.io.ByteToCharCp1122, sun.io.ByteToCharCp838, sun.io.ByteToCharJIS0201, sun.io.ByteToCharCp852, sun.io.ByteToCharMacGreek, sun.io.ByteToCharISO8859_6, sun.io.ByteToCharCp1147, sun.io.ByteToCharISO8859_8, sun.io.ByteToCharISO8859_4, sun.io.ByteToCharMacRomania, sun.io.ByteToCharISO8859_9, sun.io.ByteToCharCp864, sun.io.ByteToCharCp922, sun.io.ByteToCharMacIceland, sun.io.ByteToCharCp1148, sun.io.ByteToCharCp297, sun.io.ByteToCharMacRoman, sun.io.ByteToCharMacCentralEurope, sun.io.ByteToCharCp437, sun.io.ByteToCharCp865, sun.io.ByteToCharCp1253, sun.io.ByteToCharCp1142, sun.io.ByteToCharCp278, sun.io.ByteToCharCp863, sun.io.ByteToCharCp862, sun.io.ByteToCharISO8859_7, sun.io.ByteToCharCp037, sun.io.ByteToCharMacThai, sun.io.ByteToCharCp1097, sun.io.ByteToCharCp1258, sun.io.ByteToCharCp277, sun.io.ByteToCharCp923, sun.io.ByteToCharCp1146, sun.io.ByteToCharMacDingbat, sun.io.ByteToCharCp424, sun.io.ByteToCharISO8859_5, sun.io.ByteToCharKOI8_R, sun.io.ByteToCharCp1143, sun.io.ByteToCharCp856, sun.io.ByteToCharMS874, sun.io.ByteToCharCp857, sun.io.ByteToCharCp874, sun.io.ByteToCharCp280, sun.io.ByteToCharMacHebrew, sun.io.ByteToCharCp1252, sun.io.ByteToCharCp1123, sun.io.ByteToCharCp1140, sun.io.ByteToCharCp870, sun.io.ByteToCharCp869, sun.io.ByteToCharCp871, sun.io.ByteToCharCp1145, sun.io.ByteToCharCp1149, sun.io.ByteToCharMacCroatian, sun.io.ByteToCharISO8859_15_FDIS, sun.io.ByteToCharCp860, sun.io.ByteToCharMacSymbol, sun.io.ByteToCharCp1254, sun.io.ByteToCharCp866, sun.io.ByteToCharCp1257, sun.io.ByteToCharMacUkraine, sun.io.ByteToCharCp921, sun.io.ByteToCharCp861, sun.io.ByteToCharMacCyrillic, sun.io.ByteToCharCp855, sun.io.ByteToCharCp1112, sun.io.ByteToCharCp775, sun.io.ByteToCharISO8859_3, sun.io.ByteToCharCp284, sun.io.ByteToCharCp1251, sun.io.ByteToCharISO8859_2, sun.io.ByteToCharCp1141, sun.io.ByteToCharCp500, sun.io.ByteToCharTIS620, sun.io.ByteToCharCp273, sun.io.ByteToCharCp1256, sun.io.ByteToCharCp868, sun.io.ByteToCharCp1025, sun.io.ByteToCharCp858, sun.io.ByteToCharCp737, sun.io.ByteToCharCp420,
ByteToCharSingleByte | abstract public class ByteToCharSingleByte extends ByteToCharConverter (Code) | | A table driven conversion from byte to char for single byte character sets.
The needed data tables will reside in a character set specific subclass.
author: Lloyd Honomichl author: Asmus Freytag version: 8/28/96 |
Method Summary | |
public int | convert(byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd) Converts bytes to characters according to the selected character
encoding. | public int | flush(char[] output, int outStart, int outEnd) | public String | getByteToCharTable() | protected char | getUnicode(int byteIndex) | public void | reset() Resets the converter. |
byteToCharTable | protected String byteToCharTable(Code) | | Mapping table. Values supplied by subclass
|
convert | public int convert(byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd) throws UnknownCharacterException, MalformedInputException, ConversionBufferFullException(Code) | | Converts bytes to characters according to the selected character
encoding.
Maintains internal state, so that conversions that result in
exceptions can be restarted by calling convert again, with
appropriately modified parameters.
Call reset before converting input that is not a continuation of
the previous call.
the number of characters written to output. Parameters: input - byte array containing text in character set Parameters: inStart - offset in input array Parameters: inEnd - offset of last byte to be converted Parameters: output - character array to receive conversion result Parameters: outStart - starting offset Parameters: outEnd - offset of last character to be written to See Also: ByteToCharSingleByte.reset |
flush | public int flush(char[] output, int outStart, int outEnd)(Code) | | |
getUnicode | protected char getUnicode(int byteIndex)(Code) | | |
reset | public void reset()(Code) | | Resets the converter.
Call this method to reset the converter to its initial state
|
Methods inherited from sun.io.ByteToCharConverter | abstract public int convert(byte[] input, int inStart, int inEnd, char[] output, int outStart, int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException(Code)(Java Doc) public char[] convertAll(byte input) throws MalformedInputException(Code)(Java Doc) abstract public int flush(char[] output, int outStart, int outEnd) throws MalformedInputException, ConversionBufferFullException(Code)(Java Doc) public int getBadInputLength()(Code)(Java Doc) abstract public String getCharacterEncoding()(Code)(Java Doc) public static ByteToCharConverter getConverter(String encoding) throws UnsupportedEncodingException(Code)(Java Doc) public static ByteToCharConverter getDefault()(Code)(Java Doc) public int getMaxCharsPerByte()(Code)(Java Doc) public int nextByteIndex()(Code)(Java Doc) public int nextCharIndex()(Code)(Java Doc) abstract public void reset()(Code)(Java Doc) public void setSubstitutionChars(char[] c) throws IllegalArgumentException(Code)(Java Doc) public void setSubstitutionMode(boolean doSub)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|