| Modifier and Type | Class and Description |
|---|---|
| protected static class | CBORParser.
Type to keep track of a list of string references. |
| protected static class | CBORParser.
Type to keep a stack of string refs based on namespaces within the document. |
| public static class | CBORParser.
Class for keeping track of tags in an optimized manner. |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | _bufferRecyclable
Flag that indicates whether the input buffer is recyclable (and needs to be returned to recycler once we are done) or not. |
| private int | _chunkEnd
Helper variables used when dealing with chunked content. |
| private int | _chunkLeft
Helper variables used when dealing with chunked content. |
| protected final int | _formatFeatures
Bit flag composed of bits that indicate which
|
| protected byte[] | _inputBuffer
Current buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser. |
| protected InputStream | _inputStream
Input stream that can be used for reading more content, if one in use. |
| 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 String | _sharedString
Shared string that should be used in place of _textBuffer when a string reference is used. |
| protected CBORSimpleValue | _simpleValue
When major type 7 value is encountered and exposed as |
| protected CBORReadContext | _streamReadContext
Information about parser context, context in which the next token is to be parsed (root, array, object). |
| protected CBORParser. | _stringRefs
Stack of text and binary string references. |
| 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 CBORParser. | _tagValues
We will keep track of tag values for possible future use. |
| protected boolean | _tokenIncomplete
Flag that indicates that the current token has not yet been fully processed, and needs to be finished for some access (or skipped to obtain the next token) |
| protected int | _typeByte
Type byte of the current token |
| private static final BigInteger | |
| private static final BigInteger | |
| protected static final JacksonFeatureSet | |
| protected static final int | |
| private static final double | |
| private static final double | |
| private static final Charset | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public | CBORParser(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int cborFeatures, ByteQuadsCanonicalizer sym, InputStream in, byte[] inputBuffer, int start, int end, boolean bufferRecyclable)
|
| Modifier and Type | Method and Description |
|---|---|
| private final String | |
| protected final BigInteger | |
| protected final BigInteger | |
| protected final boolean | |
| protected final boolean | _checkNextIsIntInArray(final String typeDesc)
Heavily simplified method that does a subset of what |
| protected void | |
| protected void | |
| protected void | _closeInput()
Implements abstract tools. Abstract method for sub-classes to implement; to be called by
|
| private final int | |
| private final int | |
| private final long | |
| private final int | |
| private final String | |
| private final int | |
| private final int | |
| private int | |
| private final String | |
| private final int | _decodeExplicitLength(int lowBits)
Method used to decode explicit length of a variable-length value (or, for indefinite/chunked, indicate that one is not known). |
| private float | |
| private final String | |
| protected final String | _decodeNonStringName(int ch, CBORParser.
Method that handles initial token type recognition for token that has to be either PROPERTY_NAME or END_OBJECT. |
| protected final JsonToken | |
| public JsonToken | _decodeSimpleValue(int lowBits, int ch)
Helper method that deals with details of decoding unallocated "simple values" and exposing them as expected token. |
| private final int | |
| protected JsonToken | _decodeUndefinedValue()
Helper method to encapsulate details of handling of mysterious `undefined` value that is allowed to be used as something encoder could not handle (as per spec), whatever the heck that should be. |
| private final int | |
| private final int | Returns: Character value minus 0x10000; this so that caller can readily expand it to actual surrogates
|
| protected JsonToken | |
| private final String | _findDecodedFromSymbols(final int len)
Helper method for trying to find specified encoded UTF-8 byte sequence from symbol table; if successful avoids actual decoding to String. |
| private final String | |
| protected byte[] | _finishBytes(int len)
Helper called to complete reading of binary data ("byte string") in case contents are needed. |
| protected byte[] | |
| private final void | |
| private final boolean | |
| protected byte[] | |
| private final String | |
| private final int | |
| private final String | |
| protected String | |
| protected void | |
| private final byte[] | |
| private static int[] | |
| protected void | _handleEOF()
Overrides tools. Method called when an EOF is encountered between tokens. |
| protected JsonToken | |
| protected JsonToken | |
| protected JsonToken | |
| protected void | |
| private final void | |
| protected final void | _loadToHaveAtLeast(int minAvailable)
Helper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary |
| private static final long | |
| private final int | |
| private final int | |
| private final int | |
| private int | |
| private final int | _nextFieldFromSymbolsLong(PropertyNameMatcher matcher, int len, int q1, int q2)
Method for locating names longer than 8 bytes (in UTF-8) |
| private final int | |
| private int | |
| private int | |
| private int | |
| protected String | |
| private static final int | |
| protected int | |
| protected void | _parseNumericValue(int expType)
Implements abstract tools. Method that will parse actual numeric value out of a syntactically valid number value. |
| private int | |
| protected void | _releaseBuffers()
Overrides tools. Method called to release internal buffers owned by the base reader. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private String | _reportTruncatedUTF8InName(int strLenBytes, int truncatedCharOffset, int firstUTFByteValue, int bytesExpected)
|
| private String | _reportTruncatedUTF8InString(int strLenBytes, int truncatedCharOffset, int firstUTFByteValue, int bytesExpected)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | _skipIncomplete()
Method called to skip remainders of an incomplete token, when contents themselves will not be needed any more. |
| private final int | |
| private final int | |
| private final long | |
| protected final boolean | |
| public void | assignCurrentValue(Object v)
Overrides tools. Helper method, usually equivalent to:
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public TokenStreamLocation | currentLocation()
Implements abstract tools. Overridden since we do not really have character-based locations, but we do have byte offset to specify. |
| public String | currentName()
Implements abstract tools. Method that can be called to get the name associated with the current event. |
| public 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()
Overrides 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 void | finishToken()
Overrides tools. Method for forcing full read of current token, even if it might otherwise
only be read if data is accessed via |
| public byte[] | getBinaryValue(Base64Variant b64variant)
Overrides tools. Method that can be used to read (and consume -- results may not be accessible using other methods after the call) base64-encoded binary data included in the current textual JSON value. |
| public int | getCurrentTag()
Method that can be used to access tag id associated with the most recently decoded value (whether completely, for scalar values, or partially, for Objects/Arrays), if any. |
| public CBORParser. | getCurrentTags()
Method that can be used to access all tag ids associated with the most recently decoded value (whether completely, for scalar values, or partially, for Objects/Arrays), if any. |
| public Object | getEmbeddedObject()
Overrides tools. Accessor that can be called if (and only if) the current token
is |
| public float | getFloatValue()
Overrides tools. Numeric accessor that can be called when the current
token is of type |
| public JsonParser. | getNumberType()
Overrides tools. If current token is of type
|
| public JsonParser. | getNumberTypeFP()
Overrides tools. If current token is of type
|
| public Number | getNumberValue()
Overrides 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 String | getString()
Implements abstract tools. Method for accessing textual representation of the current event;
if no current event (before first call to |
| public int | getString(Writer writer)
Overrides tools. Method to read the textual representation of the current token in chunks and pass it to the given Writer. |
| public char[] | getStringCharacters()
Implements abstract tools. Method similar to |
| public int | getStringLength()
Implements abstract tools. Accessor used with |
| public int | getStringOffset()
Implements abstract tools. Accessor used with |
| public String | getValueAsString()
Overrides tools. Method that will try to convert value of current token to a
|
| public String | getValueAsString(String defaultValue)
Overrides tools. Method that will try to convert value of current token to a
|
| public boolean | hasStringCharacters()
Overrides tools. Method that can be used to determine whether calling of
|
| public boolean | isNaN()
Overrides tools. Accessor for checking whether current token is a special "not-a-number" (NaN) token (including both "NaN" AND positive/negative infinity!). |
| public boolean | Returns: true if current token is an undefined, false otherwiseChecking whether the current token represents an |
| protected boolean | |
| protected void | |
| public Boolean | nextBooleanValue()
Overrides tools. Method that fetches next token (as if calling |
| public int | nextIntValue(int defaultValue)
Overrides tools. Method that fetches next token (as if calling return (nextToken() == JsonToken.VALUE_NUMBER_INT) ? |
| public long | nextLongValue(long defaultValue)
Overrides tools. Method that fetches next token (as if calling return (nextToken() == JsonToken.VALUE_NUMBER_INT) ? |
| public boolean | nextName(SerializableString str)
Overrides tools. Method that fetches next token (as if calling |
| public String | nextName()
Overrides tools. Method that fetches next token (as if calling |
| public int | nextNameMatch(PropertyNameMatcher matcher)
Overrides tools. Method that tries to match next token from stream as |
| public String | nextStringValue()
Overrides tools. Method that fetches next token (as if calling |
| public JsonToken | nextToken()
Implements abstract tools. Main iteration method, which will advance stream enough to determine type of the next token, if any. |
| public int | readBinaryValue(Base64Variant b64variant, OutputStream out)
Overrides tools. Similar to |
| public int | releaseBuffered(OutputStream out)
Overrides tools. Method that can be called to push back any content that has been read but not consumed by the parser. |
| 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 TokenStreamContext | 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 Object | streamReadInputSource()
Implements abstract tools. Method that can be used to get access to object that is used
to access input being parsed; this is usually either
|
| public Version | version()
Implements abstract tools. Implements tools. Accessor for getting version of the core package, given a parser instance. |