Package org.codehaus.stax2.ri.typed
Class ValueDecoderFactory.DoubleDecoder
java.lang.Object
org.codehaus.stax2.typed.TypedValueDecoder
org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
org.codehaus.stax2.ri.typed.ValueDecoderFactory.DoubleDecoder
- Enclosing class:
ValueDecoderFactory
-
Field Summary
FieldsFields inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
BD_MAX_LONG, BD_MIN_LONG, L_BILLION, L_MAX_INT, L_MIN_INT, mNextPtr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(char[] lexical, int start, int end) Method used to invoke decoding functionality, for decoding the value encoded in given portion of character array It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.void
Method used to invoke decoding functionality, for decoding the value encoded in given substring.getType()
double
getValue()
Methods inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
_clean, constructInvalidValue, constructInvalidValue, handleEmptyValue, lexicalDesc, lexicalDesc, parseInt, parseInt, parseInt, parseInt, parseLong, parseLong, skipSignAndZeroes, skipSignAndZeroes, verifyDigits, verifyDigits
-
Field Details
-
mValue
protected double mValue
-
-
Constructor Details
-
DoubleDecoder
public DoubleDecoder()
-
-
Method Details
-
getType
- Specified by:
getType
in classValueDecoderFactory.DecoderBase
-
getValue
public double getValue() -
decode
Description copied from class:TypedValueDecoder
Method used to invoke decoding functionality, for decoding the value encoded in given substring. It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.Note: method will get called with "trimmed" input, i.e. input will never have any leading or trailing white space. It will also never be called with empty content (
TypedValueDecoder.handleEmptyValue()
is called instead for such cases)- Specified by:
decode
in classTypedValueDecoder
- Throws:
IllegalArgumentException
-
decode
Description copied from class:TypedValueDecoder
Method used to invoke decoding functionality, for decoding the value encoded in given portion of character array It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.Note: method will get called with "trimmed" input, i.e. input will never have any leading or trailing white space. It will also never be called with empty content (
TypedValueDecoder.handleEmptyValue()
is called instead for such cases)- Specified by:
decode
in classTypedValueDecoder
- Throws:
IllegalArgumentException
-