| Package | Description |
|---|---|
| java.nio.charset |
Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.
|
| Modifier and Type | Field and Description |
|---|---|
static CoderResult |
CoderResult.OVERFLOW
Result object indicating overflow, meaning that there is insufficient room in the output buffer.
|
static CoderResult |
CoderResult.UNDERFLOW
Result object indicating underflow, meaning that either the input buffer has been completely consumed or, if the input buffer is not yet empty, that additional input is required.
|
| Modifier and Type | Method and Description |
|---|---|
CoderResult |
CharsetDecoder.decode(ByteBuffer
Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.
|
protected abstract CoderResult |
CharsetDecoder.decodeLoop(ByteBuffer
Decodes one or more bytes into one or more characters.
|
CoderResult |
CharsetEncoder.encode(CharBuffer
Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.
|
protected abstract CoderResult |
CharsetEncoder.encodeLoop(CharBuffer
Encodes one or more characters into one or more bytes.
|
CoderResult |
CharsetEncoder.flush(ByteBuffer
Flushes this encoder.
|
CoderResult |
CharsetDecoder.flush(CharBuffer
Flushes this decoder.
|
protected CoderResult |
CharsetEncoder.implFlush(ByteBuffer
Flushes this encoder.
|
protected CoderResult |
CharsetDecoder.implFlush(CharBuffer
Flushes this decoder.
|
static CoderResult |
CoderResult.malformedForLength(int length)
Static factory method that returns the unique object describing a malformed-input error of the given length.
|
static CoderResult |
CoderResult.unmappableForLength(int length)
Static factory method that returns the unique result object describing an unmappable-character error of the given length.
|