All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.io.CharToByteUnicode

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

public class CharToByteUnicode
extends CharToByteConverter
Convert arrays containing Unicode characters into arrays of bytes, using the platform-default byte order.


Variable Index

 o byteOrder
 o marked

Constructor Index

 o CharToByteUnicode()

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.

Variables

 o marked
 protected boolean marked
 o byteOrder
 protected int byteOrder

Constructors

 o CharToByteUnicode
 public CharToByteUnicode()

Methods

 o getCharacterEncoding
 public String getCharacterEncoding()
Returns the character set id for the conversion.

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

Overrides:
convert in class CharToByteConverter
 o flush
 public int flush(byte in[],
                  int inOff,
                  int inEnd)
Writes any remaining output to the output buffer and resets the converter to its initial state.

Overrides:
flush 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index