java.lang.Object | ||
↳ | sun.io.ByteToCharConverter | |
↳ | sun.io.ByteToCharSingleByte |
![]() |
![]() |
A table driven conversion from byte to char for single byte character sets. The needed data tables will reside in a character set specific subclass.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
byteToCharTable | Mapping table. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Converts bytes to characters according to the selected character
encoding.
| |||||||||||
Writes any remaining output to the output buffer and resets the
converter to its initial state.
| |||||||||||
Resets the converter.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Converts bytes to characters according to the selected character encoding. Maintains internal state, so that conversions that result in exceptions can be restarted by calling convert again, with appropriately modified parameters. Call reset before converting input that is not a continuation of the previous call.
input | byte array containing text in character set |
---|---|
inOff | begin conversion at this offset in input array. |
inEnd | offset of last byte to be converted |
output | character array to receive conversion result |
outOff | start writing to output array at this offset. |
outEnd | offset of last character to be written to |
Writes any remaining output to the output buffer and resets the converter to its initial state.
output | char array to receive flushed output. |
---|---|
outStart | start writing to output array at this offset. |
outEnd | stop writing to output array at this offset (exclusive). |
Resets the converter. Call this method to reset the converter to its initial state