public class

ByteToCharGB18030

extends ByteToCharDoubleByte
java.lang.Object
   ↳ sun.io.ByteToCharConverter
     ↳ sun.io.ByteToCharDoubleByte
       ↳ sun.io.ByteToCharGB18030

Summary

[Expand]
Inherited Constants
From class sun.io.ByteToCharDoubleByte
[Expand]
Inherited Fields
From class sun.io.ByteToCharDoubleByte
From class sun.io.ByteToCharConverter
Public Constructors
ByteToCharGB18030()
Public Methods
int convert(byte[] input, int inOff, int inEnd, char[] output, int outOff, int outEnd)
Character conversion
int flush(char[] output, int outStart, int outEnd)
Writes any remaining output to the output buffer and resets the converter to its initial state.
String getCharacterEncoding()
Returns the character set id for the conversion
short[] getDBIndex1()
String[] getDBIndex2()
String[] getInner()
short[] getOuter()
void reset()
Resets the converter.
[Expand]
Inherited Methods
From class sun.io.ByteToCharDoubleByte
From class sun.io.ByteToCharConverter
From class java.lang.Object

Public Constructors

public ByteToCharGB18030 ()

Public Methods

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

Character conversion

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 String getCharacterEncoding ()

Returns the character set id for the conversion

public short[] getDBIndex1 ()

public String[] getDBIndex2 ()

public String[] getInner ()

public short[] getOuter ()

public void reset ()

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