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.json |
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
|
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
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 |
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.
|
Boolean |
JsonParser.nextBooleanValue()
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
if it is JsonToken.VALUE_TRUE or JsonToken.VALUE_FALSE
returns matching Boolean value; otherwise return null. |
boolean |
JsonParser.nextFieldName(SerializableString str)
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
verifies whether it is JsonToken.FIELD_NAME with specified name
and returns result of that comparison. |
int |
JsonParser.nextIntValue(int defaultValue)
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
if it is JsonToken.VALUE_NUMBER_INT returns 32-bit int value;
otherwise returns specified default value
It is functionally equivalent to: |
long |
JsonParser.nextLongValue(long defaultValue)
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
if it is JsonToken.VALUE_NUMBER_INT returns 64-bit long value;
otherwise returns specified default value
It is functionally equivalent to: |
String |
JsonParser.nextTextValue()
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
if it is JsonToken.VALUE_STRING returns contained String value;
otherwise returns null. |
abstract JsonToken |
JsonParser.nextToken()
Main iteration method, which will advance stream enough
to determine type of the next token, if any.
|
abstract JsonToken |
JsonParser.nextValue()
Iteration method that will advance stream enough
to determine type of the next token that is a value type
(including JSON Array and Object start/end markers).
|
abstract JsonParser |
JsonParser.skipChildren()
Method that will skip all child tokens of an array or
object token that the parser currently points to,
iff stream points to
JsonToken.START_OBJECT or JsonToken.START_ARRAY . |
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._reportBase64EOF()
Deprecated.
in 2.2.3; should migrate away
|
protected void |
ParserMinimalBase._reportError(String msg) |
protected void |
ParserMinimalBase._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
String msg)
Deprecated.
in 2.2.3; should migrate away
|
protected void |
ParserMinimalBase._reportInvalidEOF() |
protected void |
ParserMinimalBase._reportInvalidEOF(String msg) |
protected void |
ParserMinimalBase._reportInvalidEOFInValue() |
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 |
ParserMinimalBase._throwUnquotedSpace(int i,
String ctxtDesc)
Method called to report a problem with unquoted control character.
|
protected void |
ParserMinimalBase._wrapError(String msg,
Throwable t) |
abstract JsonToken |
ParserMinimalBase.nextToken() |
protected void |
ParserBase.reportInvalidNumber(String msg) |
protected void |
ParserBase.reportUnexpectedNumberChar(int ch,
String comment) |
Modifier and Type | Method and Description |
---|---|
protected int |
UTF8StreamJsonParser._readBinary(Base64Variant b64variant,
OutputStream out,
byte[] buffer) |
protected void |
UTF8StreamJsonParser._reportInvalidChar(int c) |
protected void |
UTF8StreamJsonParser._reportInvalidInitial(int mask) |
protected void |
UTF8StreamJsonParser._reportInvalidOther(int mask) |
protected void |
UTF8StreamJsonParser._reportInvalidOther(int mask,
int ptr) |
byte[] |
UTF8StreamJsonParser.getBinaryValue(Base64Variant b64variant) |
String |
UTF8StreamJsonParser.getText() |
char[] |
UTF8StreamJsonParser.getTextCharacters() |
int |
UTF8StreamJsonParser.getTextLength() |
int |
UTF8StreamJsonParser.getTextOffset() |
String |
UTF8StreamJsonParser.getValueAsString() |
String |
UTF8StreamJsonParser.getValueAsString(String defValue) |
boolean |
DupDetector.isDup(String name) |
int |
UTF8StreamJsonParser.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
BigInteger |
JsonParserDelegate.getBigIntegerValue() |
byte[] |
JsonParserDelegate.getBinaryValue(Base64Variant b64variant) |
boolean |
JsonParserDelegate.getBooleanValue() |
byte |
JsonParserDelegate.getByteValue() |
String |
JsonParserDelegate.getCurrentName() |
BigDecimal |
JsonParserDelegate.getDecimalValue() |
double |
JsonParserDelegate.getDoubleValue() |
Object |
JsonParserDelegate.getEmbeddedObject() |
float |
JsonParserDelegate.getFloatValue() |
int |
JsonParserDelegate.getIntValue() |
long |
JsonParserDelegate.getLongValue() |
JsonParser.NumberType |
JsonParserDelegate.getNumberType() |
Number |
JsonParserDelegate.getNumberValue() |
short |
JsonParserDelegate.getShortValue() |
String |
JsonParserDelegate.getText() |
char[] |
JsonParserDelegate.getTextCharacters() |
int |
JsonParserDelegate.getTextLength() |
int |
JsonParserDelegate.getTextOffset() |
boolean |
JsonParserDelegate.getValueAsBoolean() |
boolean |
JsonParserDelegate.getValueAsBoolean(boolean defaultValue) |
double |
JsonParserDelegate.getValueAsDouble() |
double |
JsonParserDelegate.getValueAsDouble(double defaultValue) |
int |
JsonParserDelegate.getValueAsInt() |
int |
JsonParserDelegate.getValueAsInt(int defaultValue) |
long |
JsonParserDelegate.getValueAsLong() |
long |
JsonParserDelegate.getValueAsLong(long defaultValue) |
String |
JsonParserDelegate.getValueAsString() |
String |
JsonParserDelegate.getValueAsString(String defaultValue) |
JsonToken |
JsonParserSequence.nextToken() |
JsonToken |
JsonParserDelegate.nextToken() |
JsonToken |
JsonParserDelegate.nextValue() |
int |
JsonParserDelegate.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
JsonParser |
JsonParserDelegate.skipChildren() |
Copyright © 2014 FasterXML. All Rights Reserved.