All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.ByteToCharDoubleByte
java.lang.Object
|
+----sun.io.ByteToCharConverter
|
+----sun.io.ByteToCharDoubleByte
- public abstract class ByteToCharDoubleByte
- extends ByteToCharConverter
-
badInputLength
-
-
index1
-
-
index2
-
-
start
-
-
ByteToCharDoubleByte()
-
-
convert(byte[], int, int, char[], int, int)
- Converts sequences of bytes to characters.
-
flush(char[], int, int)
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
-
getUnicode(int, int)
-
-
reset()
- Resets the converter.
index1
protected short index1[]
index2
protected String index2[]
start
protected int start
badInputLength
protected int badInputLength
ByteToCharDoubleByte
public ByteToCharDoubleByte()
flush
public int flush(char 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 ByteToCharConverter
convert
public int convert(byte input[],
int inOff,
int inEnd,
char output[],
int outOff,
int outEnd) throws UnknownCharacterException, ConversionBufferFullException
- Converts sequences of bytes to characters.
Conversions that result in Exceptions can be restarted by calling
convert again, with appropriately modified parameters.
- Parameters:
- input - byte array containing text in Double/single Byte
- inStart - offset in input array
- inEnd - offset of last byte to be converted
- output - character array to receive conversion result
- outStart - starting offset
- outEnd - offset of last byte to be written to
- Returns:
- the characters written to output.
- Overrides:
- convert in class ByteToCharConverter
getUnicode
protected char getUnicode(int byte1,
int byte2)
reset
public void reset()
- Resets the converter.
Call this method to reset the converter to its initial state
- Overrides:
- reset in class ByteToCharConverter
All Packages Class Hierarchy This Package Previous Next Index