public abstract class

ByteToCharDoubleByte

extends ByteToCharConverter
java.lang.Object
   ↳ sun.io.ByteToCharConverter
     ↳ sun.io.ByteToCharDoubleByte
Known Direct Subclasses
Known Indirect Subclasses

Summary

Constants
char REPLACE_CHAR
Fields
protected int badInputLength
protected int end
protected short[] index1
protected String[] index2
protected byte savedByte
protected int start
[Expand]
Inherited Fields
From class sun.io.ByteToCharConverter
Public Constructors
ByteToCharDoubleByte()
Public Methods
int convert(byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd)
Converts sequences of bytes to characters.
int flush(char[] output, int outStart, int outEnd)
Writes any remaining output to the output buffer and resets the converter to its initial state.
short[] getIndex1()
String[] getIndex2()
void reset()
Resets the converter.
Protected Methods
char convSingleByte(int b)
char getUnicode(int byte1, int byte2)
[Expand]
Inherited Methods
From class sun.io.ByteToCharConverter
From class java.lang.Object

Constants

protected static final char REPLACE_CHAR

Constant Value: 65533 (0x0000fffd)

Fields

protected int badInputLength

protected int end

protected short[] index1

protected String[] index2

protected byte savedByte

protected int start

Public Constructors

public ByteToCharDoubleByte ()

Public Methods

public int convert (byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd)

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
inOff begin conversion at this offset in input array.
inEnd offset of last byte to be converted
output character array to receive conversion result
outOff start writing to output array at this offset.
outEnd offset of last byte to be written to
Returns
  • the characters written to output.

public int flush (char[] output, int outStart, int outEnd)

Writes any remaining output to the output buffer and resets the converter to its initial state.

Parameters
output char array to receive flushed output.
outStart start writing to output array at this offset.
outEnd stop writing to output array at this offset (exclusive).

public short[] getIndex1 ()

public String[] getIndex2 ()

public void reset ()

Resets the converter. Call this method to reset the converter to its initial state

Protected Methods

protected char convSingleByte (int b)

protected char getUnicode (int byte1, int byte2)