public static final class ValueDecoderFactory.IntArrayDecoder extends ValueDecoderFactory.BaseArrayDecoder
| Modifier and Type | Field and Description |
|---|---|
(package private) ValueDecoderFactory.IntDecoder |
mDecoder |
(package private) int[] |
mResult |
INITIAL_RESULT_BUFFER_SIZE, mCount, mEnd, mStart, SMALL_RESULT_BUFFER_SIZE| Constructor and Description |
|---|
IntArrayDecoder(int[] result,
int start,
int maxCount,
ValueDecoderFactory.IntDecoder intDecoder)
Constructor used for constructing decoders with fixed pre-allocated
result buffer.
|
IntArrayDecoder(ValueDecoderFactory.IntDecoder intDecoder)
Constructor used for constructing decoders with automatically
adjusting result buffer
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
decodeValue(char[] buffer,
int start,
int end) |
boolean |
decodeValue(java.lang.String input)
Method called to decode single (element) value that given textual
input contains and store it in result array.
|
void |
expand()
Method that can be called if the internal result buffer
fills up (when
ValueDecoderFactory.BaseArrayDecoder.hasRoom() returns false) and
will expand result buffer to hold at least one more value. |
int[] |
getValues() |
calcNewSize, getCount, hasRoomint[] mResult
final ValueDecoderFactory.IntDecoder mDecoder
public IntArrayDecoder(int[] result,
int start,
int maxCount,
ValueDecoderFactory.IntDecoder intDecoder)
public IntArrayDecoder(ValueDecoderFactory.IntDecoder intDecoder)
public void expand()
ValueDecoderFactory.BaseArrayDecoderValueDecoderFactory.BaseArrayDecoder.hasRoom() returns false) and
will expand result buffer to hold at least one more value.expand in class ValueDecoderFactory.BaseArrayDecoderpublic int[] getValues()
public boolean decodeValue(java.lang.String input)
throws java.lang.IllegalArgumentException
TypedArrayDecoderdecodeValue in class TypedArrayDecoderjava.lang.IllegalArgumentExceptionpublic boolean decodeValue(char[] buffer,
int start,
int end)
throws java.lang.IllegalArgumentException
decodeValue in class TypedArrayDecoderjava.lang.IllegalArgumentException