public abstract class ByteToCharEncoder<T extends ByteToCharEncoder<T>> extends BaseCoder<ByteBuffer,CharBuffer,T> implements IByteToCharEncoder
CharsetDecoder
,
Serialized FormaverageOutPerIn, maxOutPerIn, minInPerOut, state
Modifier | Constructor and Description |
---|---|
protected |
ByteToCharEncoder(float minInPerOut,
float averageCharsPerByte,
float maxCharsPerByte) |
Modifier and Type | Method and Description |
---|---|
protected CharBuffer |
allocate(int capacity) |
String |
encodeToString(byte[] in)
Convenience method for
BaseCoder.code(java.nio.Buffer) . |
protected CharBuffer |
put(CharBuffer base,
CharBuffer 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 ByteToCharEncoder(float minInPerOut, float averageCharsPerByte, float maxCharsPerByte)
protected CharBuffer allocate(int capacity)
allocate
in class BaseCoder<ByteBuffer,CharBuffer,T extends ByteToCharEncoder<T>>
protected CharBuffer put(CharBuffer base, CharBuffer put)
put
in class BaseCoder<ByteBuffer,CharBuffer,T extends ByteToCharEncoder<T>>
public String encodeToString(byte[] in) throws CharacterCodingException
BaseCoder.code(java.nio.Buffer)
.
Does not handle all desired variations by design, e.g. only encoding a portion of the input.CharacterCodingException
Copyright © 2009–2017 Mark A. Ziesemer. All rights reserved.