public class

CharToByteEUC_JP

extends CharToByteJIS0208
java.lang.Object
   ↳ sun.io.CharToByteConverter
     ↳ sun.io.CharToByteDoubleByte
       ↳ sun.io.CharToByteJIS0208
         ↳ sun.io.CharToByteEUC_JP
Known Direct Subclasses

Summary

[Expand]
Inherited Fields
From class sun.io.CharToByteDoubleByte
From class sun.io.CharToByteConverter
Public Constructors
CharToByteEUC_JP()
Public Methods
int convert(char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd)
Converts characters to sequences of bytes.
String getCharacterEncoding()
Returns the character set id for the conversion.
int getMaxBytesPerChar()
the maximum number of bytes needed to hold a converted char
Protected Methods
int convSingleByte(char inputChar, byte[] outputByte)
int getNative(char ch)
[Expand]
Inherited Methods
From class sun.io.CharToByteJIS0208
From class sun.io.CharToByteDoubleByte
From class sun.io.CharToByteConverter
From class java.lang.Object

Public Constructors

public CharToByteEUC_JP ()

Public Methods

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

Converts characters to sequences of bytes. Conversions that result in Exceptions can be restarted by calling convert again, with appropriately modified parameters.

Parameters
input char array containing text in Unicode
inOff begin conversion at this offset in input array.
inEnd offset of last byte to be converted
output byte 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 String getCharacterEncoding ()

Returns the character set id for the conversion.

public int getMaxBytesPerChar ()

the maximum number of bytes needed to hold a converted char

Protected Methods

protected int convSingleByte (char inputChar, byte[] outputByte)

protected int getNative (char ch)