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 |
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, decodeValueprotected 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 TypedArrayDecoderpublic final boolean hasRoom()
hasRoom in class TypedArrayDecoderpublic abstract void expand()
hasRoom() returns false) and
will expand result buffer to hold at least one more value.protected int calcNewSize(int currSize)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.