| java.lang.Object | ||
| ↳ | sun.io.CharToByteConverter | |
| ↳ | sun.io.CharToByteUnicode | |
Known Direct Subclasses
|
Convert arrays containing Unicode characters into arrays of bytes, using the platform-default byte order.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| byteOrder | |||||||||||
| usesMark | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.io.CharToByteConverter
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.io.CharToByteConverter
| |||||||||||
From class
java.lang.Object
| |||||||||||
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.
| in | 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). |
| out | 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.
| in | byte array to receive flushed output. |
|---|---|
| inOff | start writing to output array at this offset. |
| inEnd | stop writing to output array at this offset (exclusive). |
Returns the maximum number of bytes needed to convert a char. Useful for calculating the maximum output buffer size needed for a particular input buffer.
Resets converter to its initial state.