Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.base |
Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
|
com.fasterxml.jackson.core.exc |
Package for some of
JsonProcessingException
subtypes contained by streaming API. |
com.fasterxml.jackson.core.filter | |
com.fasterxml.jackson.core.json |
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
|
com.fasterxml.jackson.core.json.async |
Non-blocking ("async") JSON parser implementation.
|
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
Modifier and Type | Field and Description |
---|---|
protected JsonLocation |
JsonProcessingException._location |
static JsonLocation |
JsonLocation.NA
Shared immutable "N/A location" that can be returned to indicate
that no location information is available.
|
Modifier and Type | Method and Description |
---|---|
JsonLocation |
JsonParser.currentLocation()
Method that returns location of the last processed input unit (character
or byte) from the input;
usually for error reporting purposes.
|
JsonLocation |
JsonParser.currentTokenLocation()
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.
|
abstract JsonLocation |
JsonParser.getCurrentLocation()
Deprecated.
Since 2.17 use
JsonParser.currentLocation() instead |
abstract JsonLocation |
JacksonException.getLocation()
Accessor for location information related to position within input
or output (depending on operation), if available; if not available
may return
null . |
JsonLocation |
JsonProcessingException.getLocation() |
JsonLocation |
JsonStreamContext.getStartLocation(Object srcRef)
Deprecated.
Since 2.13 use
JsonStreamContext.startLocation(com.fasterxml.jackson.core.io.ContentReference) instead |
abstract JsonLocation |
JsonParser.getTokenLocation()
Deprecated.
Since 2.17 use
JsonParser.currentTokenLocation() instead |
JsonLocation |
JsonStreamContext.startLocation(ContentReference srcRef)
Optional method that may be used to access starting location of this context:
for example, in case of JSON `Object` context, offset at which `[` token was
read or written.
|
Modifier and Type | Method and Description |
---|---|
protected JsonParseException |
JsonParser._constructReadException(String msg,
JsonLocation loc)
Helper method for constructing
JsonParseException
based on current state of the parser, except for specified
JsonLocation for problem location (which may not be
the exact current location) |
Constructor and Description |
---|
JsonParseException(JsonParser p,
String msg,
JsonLocation loc) |
JsonParseException(JsonParser p,
String msg,
JsonLocation loc,
Throwable rootCause) |
JsonParseException(String msg,
JsonLocation loc)
Deprecated.
|
JsonParseException(String msg,
JsonLocation loc,
Throwable rootCause)
Deprecated.
|
JsonProcessingException(String msg,
JsonLocation loc) |
JsonProcessingException(String msg,
JsonLocation loc,
Throwable rootCause) |
Modifier and Type | Method and Description |
---|---|
protected JsonLocation |
ParserMinimalBase._currentLocationMinusOne()
Factory method used to provide location for cases where we must read
and consume a single "wrong" character (to possibly allow error recovery),
but need to report accurate location for that character: if so, the
current location is past location we want, and location we want will be
"one location earlier".
|
JsonLocation |
ParserBase.getCurrentLocation()
Deprecated.
|
JsonLocation |
ParserBase.getTokenLocation()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected static JsonLocation |
StreamReadException._currentLocation(JsonParser p) |
Constructor and Description |
---|
StreamConstraintsException(String msg,
JsonLocation loc) |
StreamReadException(JsonParser p,
String msg,
JsonLocation loc) |
StreamReadException(JsonParser p,
String msg,
JsonLocation loc,
Throwable rootCause) |
StreamReadException(String msg,
JsonLocation loc,
Throwable rootCause) |
Modifier and Type | Method and Description |
---|---|
JsonLocation |
FilteringParserDelegate.currentLocation() |
JsonLocation |
FilteringParserDelegate.currentTokenLocation() |
JsonLocation |
FilteringParserDelegate.getCurrentLocation()
Deprecated.
|
JsonLocation |
FilteringParserDelegate.getTokenLocation()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected JsonLocation |
NonBlockingJsonParserBase._currentLocationMinusOne() |
JsonLocation |
NonBlockingJsonParserBase.currentLocation() |
JsonLocation |
NonBlockingJsonParserBase.currentTokenLocation() |
Modifier and Type | Method and Description |
---|---|
JsonLocation |
JsonParserDelegate.currentLocation() |
JsonLocation |
JsonParserDelegate.currentTokenLocation() |
JsonLocation |
JsonParserDelegate.getCurrentLocation()
Deprecated.
|
JsonLocation |
JsonParserDelegate.getTokenLocation()
Deprecated.
|
Copyright © 2008–2024 FasterXML. All rights reserved.