java.lang.Object | ||
↳ | sun.io.CharToByteConverter | |
↳ | sun.io.CharToByteASCII |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the given character can be converted to the
target character encoding.
| |||||||||||
Converts an array of Unicode characters into an array of bytes
in the target character encoding.
| |||||||||||
Writes any remaining output to the output buffer and resets the
converter to its initial state.
| |||||||||||
Returns the character set id for the conversion.
| |||||||||||
returns the maximum number of bytes needed to convert a char
| |||||||||||
Resets converter to its initial state.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns true if the given character can be converted to the target character encoding.
ch | character to test |
---|
Converts an array of Unicode characters into an array of bytes in the target character encoding. This method allows a buffer by buffer conversion of a data stream. The state of the conversion is saved between calls to convert. If a call to convert results in an exception, the conversion may be continued by calling convert again with suitably modified parameters. All conversions should be finished with a call to the flush method.
input | array containing Unicode characters to be converted. |
---|---|
inOff | begin conversion at this offset in input array. |
inEnd | stop conversion at this offset in input array (exclusive). |
output | byte array to receive conversion result. |
outOff | start writing to output array at this offset. |
outEnd | stop writing to output array at this offset (exclusive). |
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 |
---|
returns the maximum number of bytes needed to convert a char
Resets converter to its initial state.