public abstract class CharToByteDecoder<T extends CharToByteDecoder<T>> extends BaseCoder<CharBuffer,ByteBuffer,T> implements ICharToByteDecoder
CharsetEncoder
,
Serialized FormaverageOutPerIn, maxOutPerIn, minInPerOut, state
Modifier | Constructor and Description |
---|---|
protected |
CharToByteDecoder(float minInPerOut,
float averageBytesPerChar,
float maxBytesPerChar) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
allocate(int capacity) |
byte[] |
decodeToBytes(CharSequence in)
Convenience method for
BaseCoder.code(java.nio.Buffer) . |
protected ByteBuffer |
put(ByteBuffer base,
ByteBuffer put) |
checkConfigAllowed, checkNullArgument, clone, code, code, codingLoop, config, configImpl, flush, getAverageOutPerIn, getMaxOutPerIn, getMinInPerOut, implFlush, init, reset, resetImpl, throwIllegalStateException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, code, code, config, flush, getAverageOutPerIn, getMaxOutPerIn, getMinInPerOut, reset
protected CharToByteDecoder(float minInPerOut, float averageBytesPerChar, float maxBytesPerChar)
protected ByteBuffer allocate(int capacity)
allocate
in class BaseCoder<CharBuffer,ByteBuffer,T extends CharToByteDecoder<T>>
protected ByteBuffer put(ByteBuffer base, ByteBuffer put)
put
in class BaseCoder<CharBuffer,ByteBuffer,T extends CharToByteDecoder<T>>
public byte[] decodeToBytes(CharSequence in) throws CharacterCodingException
BaseCoder.code(java.nio.Buffer)
.
Does not handle all desired variations by design, e.g. only decoding a portion of the input.
(In this case, pass-in the result of CharSequence.subSequence(int, int)
instead.)CharacterCodingException
Copyright © 2009–2017 Mark A. Ziesemer. All rights reserved.