All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.io.CharToByteJIS

java.lang.Object
   |
   +----sun.io.CharToByteConverter
           |
           +----sun.io.CharToByteJIS0208
                   |
                   +----sun.io.CharToByteJIS

public class CharToByteJIS
extends CharToByteJIS0208

Constructor Index

 o CharToByteJIS()

Method Index

 o convert(char[], int, int, byte[], int, int)
Converts an array of Unicode characters into an array of bytes in the target character encoding.
 o flush(byte[], int, int)
Writes any remaining output to the output buffer and resets the converter to its initial state.
 o getCharacterEncoding()
Returns the character set id for the conversion.
 o getMaxBytesPerChar()
returns the maximum number of bytes needed to convert a char
 o reset()
Resets converter to its initial state.

Constructors

 o CharToByteJIS
 public CharToByteJIS()

Methods

 o flush
 public int flush(byte output[],
                  int outStart,
                  int outEnd) throws MalformedInputException, ConversionBufferFullException
Writes any remaining output to the output buffer and resets the converter to its initial state.

Overrides:
flush in class CharToByteConverter
 o convert
 public int convert(char input[],
                    int inOff,
                    int inEnd,
                    byte output[],
                    int outOff,
                    int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException
Converts an array of Unicode characters into an array of bytes in the target character encoding.

Overrides:
convert in class CharToByteConverter
 o reset
 public void reset()
Resets converter to its initial state.

Overrides:
reset in class CharToByteConverter
 o getMaxBytesPerChar
 public int getMaxBytesPerChar()
returns the maximum number of bytes needed to convert a char

Overrides:
getMaxBytesPerChar in class CharToByteConverter
 o getCharacterEncoding
 public String getCharacterEncoding()
Returns the character set id for the conversion.

Overrides:
getCharacterEncoding in class CharToByteConverter

All Packages  Class Hierarchy  This Package  Previous  Next  Index