public abstract static class ValueDecoderFactory.BaseArrayDecoder extends TypedArrayDecoder
Modifier and Type | Field and 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 and Description |
---|---|
protected |
ValueDecoderFactory.BaseArrayDecoder(int start,
int maxCount) |
Modifier and Type | Method and 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() |
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
protected ValueDecoderFactory.BaseArrayDecoder(int start, int maxCount)
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 © 2012-2015 fasterxml.com. All Rights Reserved.