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, encodeMorepublic final boolean isCompleted()
AsciiValueEncoderAsciiValueEncoder.encodeMore(char[], int, int), to figure out whether buffer flush
is needed (there is more data), or encoding is complete.isCompleted in class AsciiValueEncoderpublic abstract int encodeMore(char[] buffer,
int ptr,
int end)
encodeMore in class AsciiValueEncoderAsciiValueEncoder.bufferNeedsFlush(int)
is appropriately called once before calling this
method)