| java.lang.Object sun.io.ByteToCharConverter sun.io.ByteToCharDoubleByte
All known Subclasses: sun.io.ByteToCharJIS0212, sun.io.ByteToCharJohab, sun.io.ByteToCharBig5, sun.io.ByteToCharJIS0208, sun.io.ByteToCharEUC_KR, sun.io.ByteToCharEUC_CN, sun.io.ByteToCharGBK,
ByteToCharDoubleByte | abstract public class ByteToCharDoubleByte extends ByteToCharConverter (Code) | | author: Limin Shi author: Sean Jiang |
Method Summary | |
protected char | convSingleByte(int b) | public int | convert(byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd) Converts sequences of bytes to characters. | public int | flush(char[] output, int outStart, int outEnd) | protected char | getUnicode(int byte1, int byte2) | public void | reset() Resets the converter. |
REPLACE_CHAR | final protected static char REPLACE_CHAR(Code) | | |
badInputLength | protected int badInputLength(Code) | | |
index1 | protected short index1(Code) | | |
savedByte | protected byte savedByte(Code) | | |
start | protected int start(Code) | | |
ByteToCharDoubleByte | public ByteToCharDoubleByte()(Code) | | |
convSingleByte | protected char convSingleByte(int b)(Code) | | |
convert | public int convert(byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd) throws UnknownCharacterException, MalformedInputException, ConversionBufferFullException(Code) | | Converts sequences of bytes to characters.
Conversions that result in Exceptions can be restarted by calling
convert again, with appropriately modified parameters.
the characters written to output. Parameters: input - byte array containing text in Double/single Byte 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 byte to be written to |
getUnicode | protected char getUnicode(int byte1, int byte2)(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)
|
|
|