CharsetEncoder
Class CharsetEncoder
- java.lang.Object
-
- java.nio.charset.CharsetEncoder
public abstract class CharsetEncoder extends Object
An engine that can transform a sequence of sixteen-bit Unicode characters into a sequence of bytes in a specific charset.
The input character sequence is provided in a character buffer or a series of such buffers. The output byte sequence is written to a byte buffer or a series of such buffers. An encoder should always be used by making the following sequence of method invocations, hereinafter referred to as an encoding operation:
Reset the encoder via the
reset
method, unless it has not been used before;- <