public class

ByteToCharEUC_JP_LINUX

extends ByteToCharJIS0208
java.lang.Object
   ↳ sun.io.ByteToCharConverter
     ↳ sun.io.ByteToCharDoubleByte
       ↳ sun.io.ByteToCharJIS0208
         ↳ sun.io.ByteToCharEUC_JP_LINUX

Class Overview

Class for converting bytes to characters for the EUC-JP encoding in linux. This converter supports the JIS0201 and the JIS0208 encoding and omits support for the JIS212 encoding.

Summary

[Expand]
Inherited Constants
From class sun.io.ByteToCharDoubleByte
[Expand]
Inherited Fields
From class sun.io.ByteToCharDoubleByte
From class sun.io.ByteToCharConverter
Public Constructors
ByteToCharEUC_JP_LINUX()
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.
String getCharacterEncoding()
Returns the character set id for the conversion
void reset()
Resets the converter.
Protected Methods
char convSingleByte(int b)
char getUnicode(int byte1, int byte2)
[Expand]
Inherited Methods
From class sun.io.ByteToCharJIS0208
From class sun.io.ByteToCharDoubleByte
From class sun.io.ByteToCharConverter
From class java.lang.Object

Public Constructors

public ByteToCharEUC_JP_LINUX ()

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

Returns the character set id for the conversion

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)