| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | _binaryValue
We will hold on to decoded binary data, for duration of
current event, so that multiple calls to
|
| protected long | _currInputProcessed
Number of characters/bytes that were contained in previous blocks (blocks that were already processed prior to the current buffer). |
| protected int | _formatFeatures
Bit flag composed of bits that indicate which
|
| protected int | _inputEnd
Index of character after last available one in the buffer. |
| protected int | _inputPtr
Pointer to next available character in buffer |
| protected boolean | _mayContainRawBinary
Flag that indicates whether content can legally have raw (unquoted) binary data. |
| protected BigDecimal | |
| protected BigInteger | |
| protected double | |
| protected float | |
| protected int | |
| protected long | |
| protected JsonParser. | |
| protected int | _numTypesValid
Bitfield that indicates which numeric representations have been calculated for the current type |
| protected int | _quad1
Quads used for hash calculation |
| protected int | _quad2
Quads used for hash calculation |
| protected int | _quad3
Quads used for hash calculation |
| protected int[] | _quadBuffer
Temporary buffer used for name parsing. |
| protected int | |
| protected String[] | _seenNames
Array of recently seen field names, which may be back referenced by later fields. |
| protected int | |
| protected String[] | _seenStringValues
Array of recently seen field names, which may be back referenced by later fields Defaults set to disable handling if no header found. |
| protected SimpleStreamReadContext | _streamReadContext
Information about parser context, context in which the next token is to be parsed (root, array, object). |
| protected final ByteQuadsCanonicalizer | _symbols
Symbol table that contains field names encountered so far |
| protected final boolean | _symbolsCanonical
Marker flag to indicate that standard symbol handling is used (one with symbol table assisted canonicalization. |
| protected final TextBuffer | _textBuffer
Buffer that contains contents of String values, including field names if necessary (name split across boundary, contains escape sequence, or access needed to char array) |
| protected int | _tokenOffsetForTotal
Alternative to |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final String[] | |
| protected static final JacksonFeatureSet |
| Access | Constructor and Description |
|---|---|
| public | SmileParserBase(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int formatFeatures, ByteQuadsCanonicalizer sym)
|
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | _closeInput()
Implements abstract tools. Abstract method for sub-classes to implement; to be called by
|
| protected void | _handleEOF()
Implements abstract tools. Method called when an EOF is encountered between tokens. |
| protected abstract void | _parseNumericValue()
Method called to complete parsing of a numeric value: will throw
|
| protected abstract boolean | Returns: true if current token is numeric; false otherwiseSimilar to |
| protected final void | _releaseBuffers()
Implements abstract tools. Method called to release internal buffers owned by the base reader. |
| protected abstract void | |
| protected void | |
| protected ContentReference | _sourceReference()
Helper method used to encapsulate logic of including (or not) of
"source reference" when constructing |
| public void | assignCurrentValue(Object v)
Implements abstract tools. Helper method, usually equivalent to:
|
| public final void | close()
Overrides tools. Implements java. Closes the parser so that no further iteration or data access
can be made; will also close the underlying input source
if parser either owns the input source, or feature
|
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| public final TokenStreamLocation | currentLocation()
Implements abstract tools. Overridden since we do not really have character-based locations, but we do have byte offset to specify. |
| public final String | currentName()
Implements abstract tools. Method that can be called to get the name associated with the current event. |
| public final TokenStreamLocation | currentTokenLocation()
Implements abstract tools. Overridden since we do not really have character-based locations, but we do have byte offset to specify. |
| public Object | currentValue()
Implements abstract tools. Helper method, usually equivalent to:
Note that "current value" is NOT populated (or used) by Streaming parser; it is only used by higher-level data-binding functionality. |
| public final BigInteger | getBigIntegerValue()
Implements abstract tools. Numeric accessor that can be called when the current
token is of type |
| public final BigDecimal | getDecimalValue()
Implements abstract tools. Numeric accessor that can be called when the current
token is of type |
| public final double | getDoubleValue()
Implements abstract tools. Numeric accessor that can be called when the current
token is of type |
| public final float | getFloatValue()
Implements abstract tools. Numeric accessor that can be called when the current
token is of type |
| public final int | getIntValue()
Implements abstract tools. Numeric accessor that can be called when the current
token is of type |
| public final long | getLongValue()
Implements abstract tools. Numeric accessor that can be called when the current
token is of type |
| public final JsonParser. | getNumberType()
Implements abstract tools. If current token is of type
|
| public JsonParser. | getNumberTypeFP()
Overrides tools. If current token is of type
|
| public final Number | getNumberValue()
Implements abstract tools. Generic number value accessor method that will work for all kinds of numeric values. |
| public final Number | getNumberValueExact()
Overrides tools. Method similar to |
| public final boolean | isClosed()
Overrides tools. Method that can be called to determine whether this parser is closed or not. |
| public final boolean | isNaN()
Implements abstract tools. Accessor for checking whether current token is a special "not-a-number" (NaN) token (including both "NaN" AND positive/negative infinity!). |
| public final boolean | |
| public JacksonFeatureSet | streamReadCapabilities()
Overrides tools. Accessor for getting metadata on capabilities of this parser, based on underlying data format being read (directly or indirectly). |
| public final SimpleStreamReadContext | streamReadContext()
Implements abstract tools. Method that can be used to access current parsing context reader is in. There are 3 different types: root, array and object contexts, with slightly different available information. |
| public final Version | version()
Implements abstract tools. Implements tools. Accessor for getting version of the core package, given a parser instance. |
| _binaryValue | back to summary |
|---|---|
| protected byte[] _binaryValue We will hold on to decoded binary data, for duration of
current event, so that multiple calls to
| |
| _currInputProcessed | back to summary |
|---|---|
| protected long _currInputProcessed Number of characters/bytes that were contained in previous blocks (blocks that were already processed prior to the current buffer). | |
| _formatFeatures | back to summary |
|---|---|
| protected int _formatFeatures Bit flag composed of bits that indicate which
Note currently the only feature ( | |
| _inputEnd | back to summary |
|---|---|
| protected int _inputEnd Index of character after last available one in the buffer. | |
| _inputPtr | back to summary |
|---|---|
| protected int _inputPtr Pointer to next available character in buffer | |
| _mayContainRawBinary | back to summary |
|---|---|
| protected boolean _mayContainRawBinary Flag that indicates whether content can legally have raw (unquoted) binary data. Since this information is included both in header and in actual binary data blocks there is redundancy, and we want to ensure settings are compliant. Using application may also want to know this setting in case it does some direct (random) access. | |
| _numberBigDecimal | back to summary |
|---|---|
| protected BigDecimal _numberBigDecimal | |
| _numberBigInt | back to summary |
|---|---|
| protected BigInteger _numberBigInt | |
| _numberDouble | back to summary |
|---|---|
| protected double _numberDouble | |
| _numberFloat | back to summary |
|---|---|
| protected float _numberFloat | |
| _numberInt | back to summary |
|---|---|
| protected int _numberInt | |
| _numberLong | back to summary |
|---|---|
| protected long _numberLong | |
| _numberType | back to summary |
|---|---|
| protected JsonParser. | |
| _numTypesValid | back to summary |
|---|---|
| protected int _numTypesValid Bitfield that indicates which numeric representations have been calculated for the current type | |
| _quad1 | back to summary |
|---|---|
| protected int _quad1 Quads used for hash calculation | |
| _quad2 | back to summary |
|---|---|
| protected int _quad2 Quads used for hash calculation | |
| _quad3 | back to summary |
|---|---|
| protected int _quad3 Quads used for hash calculation | |
| _quadBuffer | back to summary |
|---|---|
| protected int[] _quadBuffer Temporary buffer used for name parsing. | |
| _seenNameCount | back to summary |
|---|---|
| protected int _seenNameCount | |
| _seenNames | back to summary |
|---|---|
| protected String[] _seenNames Array of recently seen field names, which may be back referenced by later fields. Defaults set to enable handling even if no header found. | |
| _seenStringValueCount | back to summary |
|---|---|
| protected int _seenStringValueCount | |
| _seenStringValues | back to summary |
|---|---|
| protected String[] _seenStringValues Array of recently seen field names, which may be back referenced by later fields Defaults set to disable handling if no header found. | |
| _streamReadContext | back to summary |
|---|---|
| protected SimpleStreamReadContext _streamReadContext Information about parser context, context in which the next token is to be parsed (root, array, object). | |
| _symbols | back to summary |
|---|---|
| protected final ByteQuadsCanonicalizer _symbols Symbol table that contains field names encountered so far | |
| _symbolsCanonical | back to summary |
|---|---|
| protected final boolean _symbolsCanonical Marker flag to indicate that standard symbol handling is used (one with symbol table assisted canonicalization. May be disabled in which case alternate stream-line, non-canonicalizing handling is used: usually due to set of symbols (Object property names) is unbounded and will not benefit from canonicalization attempts. | |
| _textBuffer | back to summary |
|---|---|
| protected final TextBuffer _textBuffer Buffer that contains contents of String values, including field names if necessary (name split across boundary, contains escape sequence, or access needed to char array) | |
| _tokenOffsetForTotal | back to summary |
|---|---|
| protected int _tokenOffsetForTotal Alternative to | |
| DEFAULT_NAME_BUFFER_LENGTH | back to summary |
|---|---|
| protected static final int DEFAULT_NAME_BUFFER_LENGTH | |
| DEFAULT_STRING_VALUE_BUFFER_LENGTH | back to summary |
|---|---|
| protected static final int DEFAULT_STRING_VALUE_BUFFER_LENGTH | |
| LONGEST_NON_CHUNKED_BINARY | back to summary |
|---|---|
| protected static final int LONGEST_NON_CHUNKED_BINARY | |
| NO_STRINGS | back to summary |
|---|---|
| protected static final String[] NO_STRINGS | |
| SMILE_READ_CAPABILITIES | back to summary |
|---|---|
| protected static final JacksonFeatureSet<StreamReadCapability> SMILE_READ_CAPABILITIES | |
| SmileParserBase | back to summary |
|---|---|
| public SmileParserBase(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int formatFeatures, ByteQuadsCanonicalizer sym) | |
| _closeInput | back to summary |
|---|---|
| protected abstract void _closeInput() throws JacksonException Implements abstract tools. Doc from tools. Abstract method for sub-classes to implement; to be called by
| |
| _handleEOF | back to summary |
|---|---|
| protected void _handleEOF() throws StreamReadException Implements abstract tools. Method called when an EOF is encountered between tokens. If so, it may be a legitimate EOF, but only iff there is no open non-root context.
| |
| _parseNumericValue | back to summary |
|---|---|
| protected abstract void _parseNumericValue() throws JacksonException Method called to complete parsing of a numeric value: will throw
| |
| _parseNumericValueIfNumber | back to summary |
|---|---|
| protected abstract boolean _parseNumericValueIfNumber() throws JacksonException Similar to
| |
| _releaseBuffers | back to summary |
|---|---|
| protected final void _releaseBuffers() Implements abstract tools. Doc from tools. Method called to release internal buffers owned by the base
reader. This is expected to be called after
| |
| _releaseBuffers2 | back to summary |
|---|---|
| protected abstract void _releaseBuffers2() | |
| _reportMismatchedEndMarker | back to summary |
|---|---|
| protected void _reportMismatchedEndMarker(int actCh, char expCh) throws StreamReadException | |
| _sourceReference | back to summary |
|---|---|
| protected ContentReference _sourceReference() Helper method used to encapsulate logic of including (or not) of
"source reference" when constructing | |
| assignCurrentValue | back to summary |
|---|---|
| public void assignCurrentValue(Object v) Implements abstract tools. Doc from tools. Helper method, usually equivalent to:
| |
| close | back to summary |
|---|---|
| public final void close() throws JacksonException Overrides tools. Implements java. Doc from tools. Closes the parser so that no further iteration or data access
can be made; will also close the underlying input source
if parser either owns the input source, or feature
| |
| convertNumberToBigDecimal | back to summary |
|---|---|
| protected final void convertNumberToBigDecimal() throws JacksonException | |
| convertNumberToBigInteger | back to summary |
|---|---|
| protected final void convertNumberToBigInteger() throws JacksonException | |
| convertNumberToDouble | back to summary |
|---|---|
| protected final void convertNumberToDouble() throws JacksonException | |
| convertNumberToFloat | back to summary |
|---|---|
| protected final void convertNumberToFloat() throws JacksonException | |
| convertNumberToInt | back to summary |
|---|---|
| protected final void convertNumberToInt() throws JacksonException | |
| convertNumberToLong | back to summary |
|---|---|
| protected final void convertNumberToLong() throws JacksonException | |
| currentLocation | back to summary |
|---|---|
| public final TokenStreamLocation currentLocation() Implements abstract tools. Overridden since we do not really have character-based locations, but we do have byte offset to specify.
| |
| currentName | back to summary |
|---|---|
| public final String currentName() Implements abstract tools. Method that can be called to get the name associated with the current event.
| |
| currentTokenLocation | back to summary |
|---|---|
| public final TokenStreamLocation currentTokenLocation() Implements abstract tools. Overridden since we do not really have character-based locations, but we do have byte offset to specify.
| |
| currentValue | back to summary |
|---|---|
| public Object currentValue() Implements abstract tools. Doc from tools. Helper method, usually equivalent to:
Note that "current value" is NOT populated (or used) by Streaming parser; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding.
| |
| getBigIntegerValue | back to summary |
|---|---|
| public final BigInteger getBigIntegerValue() throws JacksonException Implements abstract tools. Doc from tools. Numeric accessor that can be called when the current
token is of type
| |
| getDecimalValue | back to summary |
|---|---|
| public final BigDecimal getDecimalValue() throws JacksonException Implements abstract tools. Doc from tools. Numeric accessor that can be called when the current
token is of type
| |
| getDoubleValue | back to summary |
|---|---|
| public final double getDoubleValue() throws JacksonException Implements abstract tools. Doc from tools. Numeric accessor that can be called when the current
token is of type Note if the value falls
outside of range of Java double, a
| |
| getFloatValue | back to summary |
|---|---|
| public final float getFloatValue() throws JacksonException Implements abstract tools. Doc from tools. Numeric accessor that can be called when the current
token is of type Note if the value falls
outside of range of Java float, a
| |
| getIntValue | back to summary |
|---|---|
| public final int getIntValue() throws JacksonException Implements abstract tools. Doc from tools. Numeric accessor that can be called when the current
token is of type Note if the resulting integer value falls outside range of
Java
| |
| getLongValue | back to summary |
|---|---|
| public final long getLongValue() throws JacksonException Implements abstract tools. Doc from tools. Numeric accessor that can be called when the current
token is of type Note if the token is an integer, but its value falls
outside of range of Java long, a
| |
| getNumberType | back to summary |
|---|---|
| public final JsonParser. Implements abstract tools. Doc from tools. If current token is of type
Note in Jackson 2.x, an exception was wrong if called for non-numeric token.
| |
| getNumberTypeFP | back to summary |
|---|---|
| public JsonParser. Overrides tools. Doc from tools. If current token is of type
| |
| getNumberValue | back to summary |
|---|---|
| public final Number getNumberValue() throws JacksonException Implements abstract tools. Doc from tools. Generic number value accessor method that will work for all kinds of numeric values. It will return the optimal (simplest/smallest possible) wrapper object that can express the numeric value just parsed.
| |
| getNumberValueExact | back to summary |
|---|---|
| public final Number getNumberValueExact() throws JacksonException Overrides tools. Doc from tools. Method similar to
Default implementation simply returns
| |
| isClosed | back to summary |
|---|---|
| public final boolean isClosed() Overrides tools. Doc from tools. Method that can be called to determine whether this parser
is closed or not. If it is closed, no new tokens can be
retrieved by calling
| |
| isNaN | back to summary |
|---|---|
| public final boolean isNaN() throws JacksonException Implements abstract tools. Doc from tools. Accessor for checking whether current token is a special
"not-a-number" (NaN) token (including both "NaN" AND
positive/negative infinity!). These values are not supported by all formats:
JSON, for example, only supports them if
Note in case where numeric value is outside range of requested type --
most notably
| |
| mayContainRawBinary | back to summary |
|---|---|
| public final boolean mayContainRawBinary() | |
| streamReadCapabilities | back to summary |
|---|---|
| public JacksonFeatureSet Overrides tools. Doc from tools. Accessor for getting metadata on capabilities of this parser, based on underlying data format being read (directly or indirectly).
| |
| streamReadContext | back to summary |
|---|---|
| public final SimpleStreamReadContext streamReadContext() Implements abstract tools. Doc from tools. Method that can be used to access current parsing context reader is in. There are 3 different types: root, array and object contexts, with slightly different available information. Contexts are hierarchically nested, and can be used for example for figuring out part of the input document that correspond to specific array or object (for highlighting purposes, or error reporting). Contexts can also be used for simple xpath-like matching of input, if so desired. Note method was called
| |
| version | back to summary |
|---|---|
| public final Version version() Implements abstract tools. Implements tools. Doc from tools. Accessor for getting version of the core package, given a parser instance. Left for sub-classes to implement.
| |