| java.lang.Object | ||
| ↳ | sun.io.CharToByteConverter | |
| ↳ | sun.io.CharToByteSingleByte | |
Known Direct Subclasses
|
A table driven conversion from char to byte for single byte character sets. Tables will reside in the class CharToByteYYYYY, where YYYYY is a unique character set identifier < TBD: Tables are of the form... >
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| index1 | |||||||||||
| index2 | |||||||||||
| mask1 | |||||||||||
| mask2 | |||||||||||
| shift | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.io.CharToByteConverter
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return whether a character is mappable or not
| |||||||||||
Converts characters to sequences of bytes.
| |||||||||||
Writes any remaining output to the output buffer and resets the
converter to its initial state.
| |||||||||||
the maximum number of bytes needed to hold a converted char
| |||||||||||
Resets the converter.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.io.CharToByteConverter
| |||||||||||
From class
java.lang.Object
| |||||||||||
Return whether a character is mappable or not
| ch | character to test |
|---|
Converts characters to sequences of bytes. Conversions that result in Exceptions can be restarted by calling convert again, with appropriately modified 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 |
Writes any remaining output to the output buffer and resets the converter to its initial state.
| output | byte array to receive flushed output. |
|---|---|
| outStart | start writing to output array at this offset. |
| outEnd | stop writing to output array at this offset (exclusive). |
| MalformedInputException |
|---|
the maximum number of bytes needed to hold a converted char
Resets the converter. Call this method to reset the converter to its initial state