ValueDecoderFactory.DoubleArrayDecoder
, ValueDecoderFactory.FloatArrayDecoder
, ValueDecoderFactory.IntArrayDecoder
, ValueDecoderFactory.LongArrayDecoder
public abstract static class ValueDecoderFactory.BaseArrayDecoder extends TypedArrayDecoder
Modifier and Type | Field | Description |
---|---|---|
protected static int |
INITIAL_RESULT_BUFFER_SIZE |
Let's use some modest array size for allocating initial
result buffer
|
protected int |
mCount |
|
protected int |
mEnd |
|
protected int |
mStart |
|
protected static int |
SMALL_RESULT_BUFFER_SIZE |
When expanding 'small' result buffers, we will expand
size by bigger factor than for larger ones.
|
Modifier | Constructor | Description |
---|---|---|
protected |
BaseArrayDecoder(int start,
int maxCount) |
Modifier and Type | Method | Description |
---|---|---|
protected int |
calcNewSize(int currSize) |
|
abstract void |
expand() |
Method that can be called if the internal result buffer
fills up (when
hasRoom() returns false) and
will expand result buffer to hold at least one more value. |
int |
getCount() |
|
boolean |
hasRoom() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decodeValue, decodeValue
protected static final int INITIAL_RESULT_BUFFER_SIZE
protected static final int SMALL_RESULT_BUFFER_SIZE
protected int mStart
protected int mEnd
protected int mCount
public final int getCount()
getCount
in class TypedArrayDecoder
public final boolean hasRoom()
hasRoom
in class TypedArrayDecoder
public abstract void expand()
hasRoom()
returns false) and
will expand result buffer to hold at least one more value.protected int calcNewSize(int currSize)
Copyright © 2019 fasterxml.com. All rights reserved.