public class

ByteToCharEUC_TW

extends ByteToCharConverter
java.lang.Object
   ↳ sun.io.ByteToCharConverter
     ↳ sun.io.ByteToCharEUC_TW

Summary

Fields
protected final char REPLACE_CHAR
public static String unicodeCNS1
public static String unicodeCNS2
public static String unicodeCNS3
[Expand]
Inherited Fields
From class sun.io.ByteToCharConverter
Public Constructors
ByteToCharEUC_TW()
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()
Return the character set ID
void reset()
Resets converter to its initial state.
Protected Methods
char convToUnicode(byte byte1, byte byte2, String table)
[Expand]
Inherited Methods
From class sun.io.ByteToCharConverter
From class java.lang.Object

Fields

protected final char REPLACE_CHAR

Constant Value: 65533 (0x0000fffd)

public static String unicodeCNS1

public static String unicodeCNS2

public static String unicodeCNS3

Public Constructors

public ByteToCharEUC_TW ()

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 to be converted.
inOff begin conversion at this offset in input array.
inEnd stop conversion at this offset in input array (exclusive).
output character array to receive conversion result.
outOff start writing to output array at this offset.
outEnd stop writing to output array at this offset (exclusive).
Returns
  • the number of bytes 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 ()

Return the character set ID

public void reset ()

Resets converter to its initial state.

Protected Methods

protected char convToUnicode (byte byte1, byte byte2, String table)