Package org.codehaus.stax2.ri.typed
Class ValueDecoderFactory.LongArrayDecoder
- java.lang.Object
-
- org.codehaus.stax2.typed.TypedArrayDecoder
-
- org.codehaus.stax2.ri.typed.ValueDecoderFactory.BaseArrayDecoder
-
- org.codehaus.stax2.ri.typed.ValueDecoderFactory.LongArrayDecoder
-
- Enclosing class:
- ValueDecoderFactory
public static final class ValueDecoderFactory.LongArrayDecoder extends ValueDecoderFactory.BaseArrayDecoder
-
-
Field Summary
-
Fields inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.BaseArrayDecoder
INITIAL_RESULT_BUFFER_SIZE, mCount, mEnd, mStart, SMALL_RESULT_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description LongArrayDecoder(long[] result, int start, int maxCount, ValueDecoderFactory.LongDecoder longDecoder)LongArrayDecoder(ValueDecoderFactory.LongDecoder longDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandecodeValue(char[] buffer, int start, int end)booleandecodeValue(String input)Method called to decode single (element) value that given textual input contains and store it in result array.voidexpand()Method that can be called if the internal result buffer fills up (whenValueDecoderFactory.BaseArrayDecoder.hasRoom()returns false) and will expand result buffer to hold at least one more value.long[]getValues()-
Methods inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.BaseArrayDecoder
calcNewSize, getCount, hasRoom
-
-
-
-
Constructor Detail
-
LongArrayDecoder
public LongArrayDecoder(long[] result, int start, int maxCount, ValueDecoderFactory.LongDecoder longDecoder)
-
LongArrayDecoder
public LongArrayDecoder(ValueDecoderFactory.LongDecoder longDecoder)
-
-
Method Detail
-
expand
public void expand()
Description copied from class:ValueDecoderFactory.BaseArrayDecoderMethod that can be called if the internal result buffer fills up (whenValueDecoderFactory.BaseArrayDecoder.hasRoom()returns false) and will expand result buffer to hold at least one more value.- Specified by:
expandin classValueDecoderFactory.BaseArrayDecoder
-
getValues
public long[] getValues()
-
decodeValue
public boolean decodeValue(String input) throws IllegalArgumentException
Description copied from class:TypedArrayDecoderMethod called to decode single (element) value that given textual input contains and store it in result array.- Specified by:
decodeValuein classTypedArrayDecoder- Returns:
- True if decoding is complete, that is, no more elements can be added to contained array
- Throws:
IllegalArgumentException
-
decodeValue
public boolean decodeValue(char[] buffer, int start, int end) throws IllegalArgumentException- Specified by:
decodeValuein classTypedArrayDecoder- Throws:
IllegalArgumentException
-
-