All Packages Class Hierarchy This Package Previous Next Index
Class sun.io.CharToByteDoubleByte
java.lang.Object
|
+----sun.io.CharToByteConverter
|
+----sun.io.CharToByteDoubleByte
- public abstract class CharToByteDoubleByte
- extends CharToByteConverter
-
badInputLength
-
-
index1
-
-
index2
-
-
CharToByteDoubleByte()
-
-
canConvert(char)
- Return whether a character is mappable or not
-
convert(char[], int, int, byte[], int, int)
- Converts characters to sequences of bytes.
-
flush(byte[], int, int)
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
-
getMaxBytesPerChar()
- the maximum number of bytes needed to hold a converted char
-
getNative(char)
-
-
reset()
- Resets the converter.
index1
protected short index1[]
index2
protected String index2[]
badInputLength
protected int badInputLength
CharToByteDoubleByte
public CharToByteDoubleByte()
flush
public int flush(byte output[],
int outStart,
int outEnd) throws MalformedInputException
- Writes any remaining output to the output buffer and resets the
converter to its initial state.
- Overrides:
- flush in class CharToByteConverter
convert
public int convert(char input[],
int inOff,
int inEnd,
byte output[],
int outOff,
int outEnd) throws UnknownCharacterException, ConversionBufferFullException
- 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
- inStart - offset in input array
- inEnd - offset of last byte to be converted
- output - byte array to receive conversion result
- outStart - starting offset
- outEnd - offset of last byte to be written to
- Returns:
- the characters written to output.
- Overrides:
- convert in class CharToByteConverter
getMaxBytesPerChar
public int getMaxBytesPerChar()
- the maximum number of bytes needed to hold a converted char
- Returns:
- s the maximum number of bytes needed for a converted char
- Overrides:
- getMaxBytesPerChar in class CharToByteConverter
reset
public void reset()
- Resets the converter.
Call this method to reset the converter to its initial state
- Overrides:
- reset in class CharToByteConverter
canConvert
public boolean canConvert(char ch)
- Return whether a character is mappable or not
- Returns:
- true if a character is mappable
- Overrides:
- canConvert in class CharToByteConverter
getNative
protected int getNative(char ch)
All Packages Class Hierarchy This Package Previous Next Index