org.codehaus.stax2.ri.typed
Class ValueDecoderFactory.IntArrayDecoder
java.lang.Object
org.codehaus.stax2.typed.TypedArrayDecoder
org.codehaus.stax2.ri.typed.ValueDecoderFactory.BaseArrayDecoder
org.codehaus.stax2.ri.typed.ValueDecoderFactory.IntArrayDecoder
- Enclosing class:
- ValueDecoderFactory
public static final class ValueDecoderFactory.IntArrayDecoder
- extends ValueDecoderFactory.BaseArrayDecoder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueDecoderFactory.IntArrayDecoder
public ValueDecoderFactory.IntArrayDecoder(int[] result,
int start,
int maxCount,
ValueDecoderFactory.IntDecoder intDecoder)
- Constructor used for constructing decoders with fixed pre-allocated
result buffer.
ValueDecoderFactory.IntArrayDecoder
public ValueDecoderFactory.IntArrayDecoder(ValueDecoderFactory.IntDecoder intDecoder)
- Constructor used for constructing decoders with automatically
adjusting result buffer
expand
public void expand()
- Description copied from class:
ValueDecoderFactory.BaseArrayDecoder
- 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.
- Specified by:
expand
in class ValueDecoderFactory.BaseArrayDecoder
getValues
public int[] getValues()
decodeValue
public boolean decodeValue(String input)
throws IllegalArgumentException
- Description copied from class:
TypedArrayDecoder
- Method called to decode single (element) value that given textual
input contains and store it in result array.
- Specified by:
decodeValue
in class TypedArrayDecoder
- 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:
decodeValue
in class TypedArrayDecoder
- Throws:
IllegalArgumentException