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.io | |
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.
|
Modifier and Type | Method and Description |
---|---|
protected JsonParseException |
JsonParser._constructError(String msg)
Helper method for constructing
JsonParseException s
based on current state of the parser |
JsonParseException |
JsonParseException.withParser(JsonParser p)
Fluent method that may be used to assign originating
JsonParser ,
to be accessed using getProcessor() . |
JsonParseException |
JsonParseException.withRequestPayload(RequestPayload p)
Fluent method that may be used to assign payload to this exception,
to let recipient access it for diagnostics purposes.
|
Modifier and Type | Method and Description |
---|---|
JsonParser |
JsonFactory.createJsonParser(byte[] data)
Deprecated.
Since 2.2, use
JsonFactory.createParser(byte[]) instead. |
JsonParser |
JsonFactory.createJsonParser(byte[] data,
int offset,
int len)
Deprecated.
Since 2.2, use
JsonFactory.createParser(byte[],int,int) instead. |
JsonParser |
JsonFactory.createJsonParser(File f)
Deprecated.
Since 2.2, use
JsonFactory.createParser(File) instead. |
JsonParser |
JsonFactory.createJsonParser(InputStream in)
Deprecated.
Since 2.2, use
JsonFactory.createParser(InputStream) instead. |
JsonParser |
JsonFactory.createJsonParser(Reader r)
Deprecated.
Since 2.2, use
JsonFactory.createParser(Reader) instead. |
JsonParser |
JsonFactory.createJsonParser(String content)
Deprecated.
Since 2.2, use
JsonFactory.createParser(String) instead. |
JsonParser |
JsonFactory.createJsonParser(URL url)
Deprecated.
Since 2.2, use
JsonFactory.createParser(URL) instead. |
JsonParser |
JsonFactory.createParser(byte[] data)
Method for constructing parser for parsing
the contents of given byte array.
|
JsonParser |
JsonFactory.createParser(byte[] data,
int offset,
int len)
Method for constructing parser for parsing
the contents of given byte array.
|
JsonParser |
JsonFactory.createParser(File f)
Method for constructing JSON parser instance to parse
contents of specified file.
|
JsonParser |
JsonFactory.createParser(InputStream in)
Method for constructing JSON parser instance to parse
the contents accessed via specified input stream.
|
JsonParser |
JsonFactory.createParser(Reader r)
Method for constructing parser for parsing
the contents accessed via specified Reader.
|
JsonParser |
JsonFactory.createParser(String content)
Method for constructing parser for parsing
contents of given String.
|
JsonParser |
JsonFactory.createParser(URL url)
Method for constructing JSON parser instance to parse
contents of resource reference by given URL.
|
Modifier and Type | Method and Description |
---|---|
protected JsonParseException |
ParserMinimalBase._constructError(String msg,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
protected int |
ParserBase._eofAsNextChar() |
protected abstract void |
ParserMinimalBase._handleEOF()
Method sub-classes need to implement
|
protected void |
ParserBase._handleEOF()
Method called when an EOF is encountered between tokens.
|
protected void |
ParserMinimalBase._reportError(String msg) |
protected void |
ParserMinimalBase._reportError(String msg,
Object arg) |
protected void |
ParserMinimalBase._reportError(String msg,
Object arg1,
Object arg2) |
protected void |
ParserMinimalBase._reportInvalidEOF() |
protected void |
ParserMinimalBase._reportInvalidEOF(String msg)
Deprecated.
Since 2.8 use
ParserMinimalBase._reportInvalidEOF(String, JsonToken) instead |
protected void |
ParserMinimalBase._reportInvalidEOF(String msg,
JsonToken currToken) |
protected void |
ParserMinimalBase._reportInvalidEOFInValue()
Deprecated.
Since 2.8 use
ParserMinimalBase._reportInvalidEOF(String, JsonToken) instead |
protected void |
ParserMinimalBase._reportInvalidEOFInValue(JsonToken type) |
protected void |
ParserBase._reportMismatchedEndMarker(int actCh,
char expCh) |
protected void |
ParserMinimalBase._reportMissingRootWS(int ch) |
protected void |
ParserMinimalBase._reportUnexpectedChar(int ch,
String comment) |
protected void |
ParserMinimalBase._throwInvalidSpace(int i) |
protected void |
ParserBase._throwUnquotedSpace(int i,
String ctxtDesc)
Method called to report a problem with unquoted control character.
|
protected void |
ParserMinimalBase._wrapError(String msg,
Throwable t) |
protected void |
ParserMinimalBase.reportInvalidNumber(String msg)
Method called to throw an exception for input token that looks like a number
based on first character(s), but is not valid according to rules of format.
|
protected void |
ParserMinimalBase.reportUnexpectedNumberChar(int ch,
String comment) |
Modifier and Type | Class and Description |
---|---|
class |
JsonEOFException
Specialized
JsonParseException that is thrown when end-of-input
is reached unexpectedly, either within token being decoded, or during
skipping of intervening white-space that is not between root-level
tokens (that is, is within JSON Object or JSON Array construct). |
Modifier and Type | Method and Description |
---|---|
protected void |
UTF8StreamJsonParser._reportInvalidChar(int c) |
protected void |
UTF8DataInputJsonParser._reportInvalidChar(int c) |
protected void |
UTF8StreamJsonParser._reportInvalidInitial(int mask) |
protected void |
UTF8DataInputJsonParser._reportInvalidInitial(int mask) |
protected void |
UTF8StreamJsonParser._reportInvalidOther(int mask) |
protected void |
UTF8StreamJsonParser._reportInvalidOther(int mask,
int ptr) |
boolean |
DupDetector.isDup(String name) |
Modifier and Type | Method and Description |
---|---|
protected String |
NonBlockingJsonParserBase._addName(int[] quads,
int qlen,
int lastQuadBytes)
This is the main workhorse method used when we take a symbol
table miss.
|
protected String |
NonBlockingJsonParserBase._findName(int q1,
int lastQuadBytes) |
protected String |
NonBlockingJsonParserBase._findName(int q1,
int q2,
int lastQuadBytes) |
protected String |
NonBlockingJsonParserBase._findName(int q1,
int q2,
int q3,
int lastQuadBytes) |
protected void |
NonBlockingJsonParserBase._reportInvalidChar(int c) |
protected void |
NonBlockingJsonParserBase._reportInvalidInitial(int mask) |
protected void |
NonBlockingJsonParserBase._reportInvalidOther(int mask) |
protected void |
NonBlockingJsonParserBase._reportInvalidOther(int mask,
int ptr) |
Copyright © 2008–2019 FasterXML. All rights reserved.