|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.JsonParser
org.codehaus.jackson.impl.JsonParserBase
org.codehaus.jackson.impl.JsonNumericParserBase
org.codehaus.jackson.impl.ReaderBasedParserBase
org.codehaus.jackson.impl.ReaderBasedNumericParser
public abstract class ReaderBasedNumericParser
Intermediate class that implements handling of numeric parsing. Separate from the actual parser class just to isolate numeric parsing: would be nice to use aggregation, but unfortunately many parts are hard to implement without direct access to underlying buffers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.codehaus.jackson.JsonParser |
|---|
JsonParser.Feature, JsonParser.NumberType |
| Field Summary |
|---|
| Fields inherited from class org.codehaus.jackson.impl.ReaderBasedParserBase |
|---|
_inputBuffer, _reader |
| Fields inherited from class org.codehaus.jackson.impl.JsonNumericParserBase |
|---|
_numberBigDecimal, _numberBigInt, _numberDouble, _numberInt, _numberLong, _numberNegative, _numTypesValid, CHAR_NULL, INT_0, INT_1, INT_2, INT_3, INT_4, INT_5, INT_6, INT_7, INT_8, INT_9, INT_DECIMAL_POINT, INT_e, INT_E, INT_MINUS, INT_PLUS, mExpLength, mFractLength, mIntLength, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_INT, NR_LONG, NR_UNKNOWN |
| Fields inherited from class org.codehaus.jackson.impl.JsonParserBase |
|---|
_binaryValue, _closed, _currInputProcessed, _currInputRow, _currInputRowStart, _inputEnd, _inputPtr, _ioContext, _nameCopied, _nameCopyBuffer, _nextToken, _parsingContext, _textBuffer, _tokenIncomplete, _tokenInputCol, _tokenInputRow, _tokenInputTotal |
| Fields inherited from class org.codehaus.jackson.JsonParser |
|---|
_currToken, _features, _lastClearedToken |
| Constructor Summary | |
|---|---|
ReaderBasedNumericParser(IOContext pc,
int features,
java.io.Reader r)
|
|
| Method Summary | |
|---|---|
protected JsonToken |
parseNumberText(int ch)
Initial parsing method for number values. |
| Methods inherited from class org.codehaus.jackson.impl.ReaderBasedParserBase |
|---|
_closeInput, _releaseBuffers, getNextChar, loadMore |
| Methods inherited from class org.codehaus.jackson.impl.JsonNumericParserBase |
|---|
convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToInt, convertNumberToLong, getBigIntegerValue, getByteValue, getDecimalValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberType, getNumberValue, getShortValue, parseNumericValue, reportInvalidNumber, reportOverflowInt, reportOverflowLong, reportUnexpectedNumberChar, reset |
| Methods inherited from class org.codehaus.jackson.JsonParser |
|---|
clearCurrentToken, disableFeature, enableFeature, getBinaryValue, getCurrentToken, getLastClearedToken, hasCurrentToken, isFeatureEnabled, readValueAs, readValueAs, readValueAsTree, setFeature |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReaderBasedNumericParser(IOContext pc,
int features,
java.io.Reader r)
| Method Detail |
|---|
protected final JsonToken parseNumberText(int ch)
throws java.io.IOException,
JsonParseException
Because much of input has to be processed in any case, no partial parsing is done: all input text will be stored for further processing. However, actual numeric value conversion will be deferred, since it is usually the most complicated and costliest part of processing.
parseNumberText in class JsonNumericParserBasejava.io.IOException
JsonParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||