All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.io.CharToByteDBCS_ASCII

java.lang.Object
   |
   +----sun.io.CharToByteConverter
           |
           +----sun.io.CharToByteDBCS_ASCII

public abstract class CharToByteDBCS_ASCII
extends CharToByteConverter

Variable Index

 o index1
 o index2
 o index2a
 o mask1
 o mask2
 o shift

Constructor Index

 o CharToByteDBCS_ASCII()

Method Index

 o canConvert(char)
Returns true if the given character can be converted to the target character encoding.
 o convert(char[], int, int, byte[], int, int)
Character conversion
 o flush(byte[], int, int)
flush out any residual data and reset the buffer state
 o getMaxBytesPerChar()
Returns the maximum number of bytes needed to convert a char.
 o reset()
Resets converter to its initial state.

Variables

 o index1
 protected short index1[]
 o index2
 protected String index2
 o index2a
 protected String index2a
 o mask1
 protected int mask1
 o mask2
 protected int mask2
 o shift
 protected int shift

Constructors

 o CharToByteDBCS_ASCII
 public CharToByteDBCS_ASCII()

Methods

 o flush
 public int flush(byte output[],
                  int outStart,
                  int outEnd) throws MalformedInputException, ConversionBufferFullException
flush out any residual data and reset the buffer state

Overrides:
flush in class CharToByteConverter
 o convert
 public int convert(char input[],
                    int inOff,
                    int inEnd,
                    byte output[],
                    int outOff,
                    int outEnd) throws UnknownCharacterException, MalformedInputException, ConversionBufferFullException
Character conversion

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 canConvert
 public boolean canConvert(char ch)
Returns true if the given character can be converted to the target character encoding.

Overrides:
canConvert in class CharToByteConverter

All Packages  Class Hierarchy  This Package  Previous  Next  Index