Uses of Class
java.nio.charset.CoderResult
Packages that use CoderResult
Package
Description
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
-
Uses of CoderResult in java.nio.charset
Fields in java.nio.charset declared as CoderResultModifier and TypeFieldDescriptionstatic final CoderResultCoderResult.OVERFLOWResult object indicating overflow, meaning that there is insufficient room in the output buffer.static final CoderResultCoderResult.UNDERFLOWResult 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.Methods in java.nio.charset that return CoderResultModifier and TypeMethodDescriptionfinal CoderResultCharsetDecoder.decode(ByteBuffer in, CharBuffer out, boolean endOfInput) Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.protected abstract CoderResultCharsetDecoder.decodeLoop(ByteBuffer in, CharBuffer out) Decodes one or more bytes into one or more characters.final CoderResultCharsetEncoder.encode(CharBuffer in, ByteBuffer out, boolean endOfInput) Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.protected abstract CoderResultCharsetEncoder.encodeLoop(CharBuffer in, ByteBuffer out) Encodes one or more characters into one or more bytes.final CoderResultCharsetDecoder.flush(CharBuffer out) Flushes this decoder.final CoderResultCharsetEncoder.flush(ByteBuffer out) Flushes this encoder.protected CoderResultCharsetDecoder.implFlush(CharBuffer out) Flushes this decoder.protected CoderResultCharsetEncoder.implFlush(ByteBuffer out) Flushes this encoder.static CoderResultCoderResult.malformedForLength(int length) Static factory method that returns the unique object describing a malformed-input error of the given length.static CoderResultCoderResult.unmappableForLength(int length) Static factory method that returns the unique result object describing an unmappable-character error of the given length.