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

Variable Index

 o badInputLength
 o index1
 o index2
 o start

Constructor Index

 o ByteToCharDoubleByte()

Method Index

 o convert(byte[], int, int, char[], int, int)
Converts sequences of bytes to characters.
 o flush(char[], int, int)
Writes any remaining output to the output buffer and resets the converter to its initial state.
 o getUnicode(int, int)
 o reset()
Resets the converter.

Variables

 o index1
 protected short index1[]
 o index2
 protected String index2[]
 o start
 protected int start
 o badInputLength
 protected int badInputLength

Constructors

 o ByteToCharDoubleByte
 public ByteToCharDoubleByte()

Methods

 o 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
 o 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
 o getUnicode
 protected char getUnicode(int byte1,
                           int byte2)
 o 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