Package net.freeutils.charset
Class EscapedByteLookupCharset.Encoder
java.lang.Object
java.nio.charset.CharsetEncoder
net.freeutils.charset.EscapedByteLookupCharset.Encoder
- Direct Known Subclasses:
PackedGSMCharset.Encoder
- Enclosing class:
- EscapedByteLookupCharset
The Encoder inner class handles the encoding of the
charset using the lookup tables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CoderResult
encodeLoop
(CharBuffer in, ByteBuffer out) Encodes one or more characters into one or more bytes.Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
Constructor Details
-
Encoder
Constructs an Encoder.- Parameters:
cs
- the charset to which this encoder belongs
-
Encoder
Constructs an Encoder.- Parameters:
cs
- the charset to which this encoder belongs
-
-
Method Details
-
encodeLoop
Encodes one or more characters into one or more bytes.- Specified by:
encodeLoop
in classCharsetEncoder
- Parameters:
in
- the input character bufferout
- the output byte buffer- Returns:
- a coder-result object describing the reason for termination
-