static final class ValueEncoderFactory.TokenEncoder extends ValueEncoderFactory.ScalarEncoder
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
_value |
MIN_CHARS_WITHOUT_FLUSH
Modifier | Constructor and Description |
---|---|
protected |
TokenEncoder() |
Modifier and Type | Method and Description |
---|---|
int |
encodeMore(byte[] buffer,
int ptr,
int end) |
int |
encodeMore(char[] buffer,
int ptr,
int end) |
boolean |
isCompleted()
Method that can alternatively be called to determine whether encoder
has encoded all data it has.
|
protected void |
reset(java.lang.String value) |
bufferNeedsFlush
protected void reset(java.lang.String value)
public boolean isCompleted()
AsciiValueEncoder
AsciiValueEncoder.encodeMore(char[], int, int)
, to figure out whether buffer flush
is needed (there is more data), or encoding is complete.isCompleted
in class AsciiValueEncoder
public int encodeMore(char[] buffer, int ptr, int end)
encodeMore
in class AsciiValueEncoder
AsciiValueEncoder.bufferNeedsFlush(int)
is appropriately called once before calling this
method)public int encodeMore(byte[] buffer, int ptr, int end)
encodeMore
in class AsciiValueEncoder
AsciiValueEncoder.bufferNeedsFlush(int)
is appropriately called once before calling this
method)