org.codehaus.stax2.ri.typed
public static final class ValueDecoderFactory.DoubleArrayDecoder extends ValueDecoderFactory.BaseArrayDecoder
INITIAL_RESULT_BUFFER_SIZE, mCount, mEnd, mStart, SMALL_RESULT_BUFFER_SIZE
Constructor and Description |
---|
ValueDecoderFactory.DoubleArrayDecoder(double[] result,
int start,
int maxCount,
ValueDecoderFactory.DoubleDecoder doubleDecoder) |
ValueDecoderFactory.DoubleArrayDecoder(ValueDecoderFactory.DoubleDecoder doubleDecoder) |
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. |
double[] |
getValues() |
calcNewSize, getCount, hasRoom
public ValueDecoderFactory.DoubleArrayDecoder(double[] result, int start, int maxCount, ValueDecoderFactory.DoubleDecoder doubleDecoder)
public ValueDecoderFactory.DoubleArrayDecoder(ValueDecoderFactory.DoubleDecoder doubleDecoder)
public void expand()
ValueDecoderFactory.BaseArrayDecoder
ValueDecoderFactory.BaseArrayDecoder.hasRoom()
returns false) and
will expand result buffer to hold at least one more value.expand
in class ValueDecoderFactory.BaseArrayDecoder
public double[] getValues()
public boolean decodeValue(java.lang.String input) throws java.lang.IllegalArgumentException
TypedArrayDecoder
decodeValue
in class TypedArrayDecoder
java.lang.IllegalArgumentException
public boolean decodeValue(char[] buffer, int start, int end) throws java.lang.IllegalArgumentException
decodeValue
in class TypedArrayDecoder
java.lang.IllegalArgumentException