JsonParser that will use an underlying
IonReader as actual parser, and camouflage it as json parser.
Will not expose all Ion info (specifically, annotations)
| Modifier and Type | Class and Description |
|---|---|
| public static enum | IonParser.
Enumeration that defines all togglable features for Ion parsers. |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | _closed
Whether this logical parser has been closed or not |
| protected int | _formatFeatures
Bit flag composed of bits that indicate which
|
| protected final IOContext | _ioContext
Some information about source is passed here, including underlying stream |
| protected ObjectCodec | |
| protected JsonReadContext | _parsingContext
Information about context in structure hierarchy |
| protected final IonReader | |
| private final IonSystem | |
| protected JsonToken | _valueToken
Type of value token we have; used to temporarily hold information when pointing to field name |
| protected static final JacksonFeatureSet |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| private BigDecimal | |
| private BigInteger | |
| private double | |
| private int | |
| private long | |
| protected void | _handleEOF()
Implements abstract com. Method called when an EOF is encountered between tokens. |
| private <T> T | |
| private <T> T | |
| private Timestamp | |
| protected JsonToken | |
| private void | |
| public boolean | canReadTypeId()
Overrides com. Introspection method that may be called to see if the underlying data format supports some kind of Type Ids natively (many do not; for example, JSON doesn't). |
| public void | close()
Implements abstract com. 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
|
| public JsonLocation | currentLocation()
Overrides com. Method that returns location of the last processed input unit (character or byte) from the input; usually for error reporting purposes. |
| public String | currentName()
Overrides com. Method that can be called to get the name associated with
the current token: for |
| public JsonLocation | currentTokenLocation()
Overrides com. Method that return the starting location of the current (most recently returned) token; that is, the position of the first input unit (character or byte) from input that starts the current token. |
| public BigInteger | getBigIntegerValue()
Implements abstract com. Numeric accessor that can be called when the current
token is of type |
| public byte[] | getBinaryValue(Base64Variant
Expected variant of base64 encoded
content (see arg0)Base64Variants for definitions
of "standard" variants).Implements abstract com. 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 ObjectCodec | getCodec()
Implements abstract com. Accessor for |
| public JsonLocation | getCurrentLocation()
Implements abstract com.
Deprecated
Deprecated alias for |
| public String | getCurrentName()
Implements abstract com.
Deprecated
Deprecated alias of |
| public BigDecimal | getDecimalValue()
Implements abstract com. Numeric accessor that can be called when the current
token is of type |
| public double | getDoubleValue()
Implements abstract com. Numeric accessor that can be called when the current
token is of type |
| public Object | getEmbeddedObject()
Overrides com. Accessor that can be called if (and only if) the current token
is |
| public float | getFloatValue()
Implements abstract com. Numeric accessor that can be called when the current
token is of type |
| public int | getIntValue()
Implements abstract com. Numeric accessor that can be called when the current
token is of type |
| public IonSystem | Returns: IonSystem instanceAccessor for |
| private IonValue | |
| public long | getLongValue()
Implements abstract com. Numeric accessor that can be called when the current
token is of type |
| public JsonParser. | getNumberType()
Implements abstract com. If current token is of type
|
| public JsonParser. | getNumberTypeFP()
Overrides com. If current token is of type
|
| public Number | getNumberValue()
Implements abstract com. Generic number value accessor method that will work for all kinds of numeric values. |
| public final Number | getNumberValueExact()
Overrides com. Method similar to |
| public JsonStreamContext | getParsingContext()
Implements abstract com. 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 JacksonFeatureSet | getReadCapabilities()
Overrides com. Accessor for getting metadata on capabilities of this parser, based on underlying data format being read (directly or indirectly). |
| public String | getText()
Implements abstract com. Method for accessing textual representation of the current token;
if no current token (before first call to |
| public char[] | getTextCharacters()
Implements abstract com. Method similar to |
| public int | getTextLength()
Implements abstract com. Accessor used with |
| public int | getTextOffset()
Implements abstract com. Accessor used with |
| public JsonLocation | getTokenLocation()
Implements abstract com.
Deprecated
Deprecated alias for |
| public String[] | |
| public Object | getTypeId()
Overrides com. Method that can be called to check whether current token (one that was just read) has an associated type id, and if so, return it. |
| public boolean | hasTextCharacters()
Implements abstract com. Method that can be used to determine whether calling of
|
| public boolean | isClosed()
Implements abstract com. Method that can be called to determine whether this parser is closed or not. |
| public JsonToken | nextToken()
Implements abstract com. Main iteration method, which will advance stream enough to determine type of the next token, if any. |
| public void | overrideCurrentName(String
Name to use as the current name; may be null. name)Implements abstract com. Method that can be used to change what is considered to be the current (field) name. |
| public boolean | requiresCustomCodec()
Overrides com. Method that can be called to determine if a custom
|
| public void | setCodec(ObjectCodec
Codec to assign, if any; c)null if noneImplements abstract com. Setter that allows defining |
| public JsonParser | skipChildren()
Overrides com. Method that will skip all child tokens of an array or
object token that the parser currently points to,
if (and only if) stream points to
|
| public Version | version()
Implements abstract com. Implements com. Accessor for getting version of the core package, given a parser instance. |