Package org.teiid.util
Class CharsetUtils.FixedEncoder
- java.lang.Object
-
- java.nio.charset.CharsetEncoder
-
- org.teiid.util.CharsetUtils.FixedEncoder
-
- Enclosing class:
- CharsetUtils
public abstract static class CharsetUtils.FixedEncoder extends CharsetEncoder
-
-
Field Summary
Fields Modifier and Type Field Description protected CharBuffer
cb
-
Constructor Summary
Constructors Modifier Constructor Description protected
FixedEncoder(Charset cs, int encodeChars, float averageBytesPerChar, float maxBytesPerChar)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CoderResult
encode(ByteBuffer out)
protected CoderResult
encodeLoop(CharBuffer in, ByteBuffer out)
protected CoderResult
implFlush(ByteBuffer out)
protected void
implReset()
-
Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
-
-
-
Field Detail
-
cb
protected CharBuffer cb
-
-
Constructor Detail
-
FixedEncoder
protected FixedEncoder(Charset cs, int encodeChars, float averageBytesPerChar, float maxBytesPerChar)
-
-
Method Detail
-
encodeLoop
protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out)
- Specified by:
encodeLoop
in classCharsetEncoder
-
encode
protected abstract CoderResult encode(ByteBuffer out)
-
implFlush
protected CoderResult implFlush(ByteBuffer out)
- Overrides:
implFlush
in classCharsetEncoder
-
implReset
protected void implReset()
- Overrides:
implReset
in classCharsetEncoder
-
-