abstract static class ValueEncoderFactory.ArrayEncoder extends AsciiValueEncoder
Modifier and Type | Field and Description |
---|---|
(package private) int |
_end |
(package private) int |
_ptr |
MIN_CHARS_WITHOUT_FLUSH
Modifier | Constructor and Description |
---|---|
protected |
ArrayEncoder(int ptr,
int end) |
Modifier and Type | Method and Description |
---|---|
abstract 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.
|
bufferNeedsFlush, encodeMore
public final 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 abstract int encodeMore(char[] buffer, int ptr, int end)
encodeMore
in class AsciiValueEncoder
AsciiValueEncoder.bufferNeedsFlush(int)
is appropriately called once before calling this
method)