|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JsonParseException | |
---|---|
org.codehaus.jackson | Main public API classes of the core streaming JSON
processor: most importantly JsonFactory
used for constructing
Json parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.impl | Parser and generator implementation classes that Jackson defines and uses. |
org.codehaus.jackson.jaxrs | Jackson-based JAX-RS provider that can automatically serialize and deserialize resources for JSON content type (MediaType). |
org.codehaus.jackson.map | Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.node | Contains concrete JsonNode implementations
Jackson uses for the Tree model. |
org.codehaus.jackson.util | Utility classes used by Jackson Core functionality. |
Uses of JsonParseException in org.codehaus.jackson |
---|
Methods in org.codehaus.jackson that return JsonParseException | |
---|---|
protected JsonParseException |
JsonParser._constructError(String msg)
Helper method for constructing JsonParseException s
based on current state of the parser |
Methods in org.codehaus.jackson that throw JsonParseException | |
---|---|
protected JsonParser |
JsonFactory._createJsonParser(byte[] data,
int offset,
int len,
IOContext ctxt)
|
protected JsonParser |
JsonFactory._createJsonParser(InputStream in,
IOContext ctxt)
Overridable construction method that actually instantiates desired parser. |
protected JsonParser |
JsonFactory._createJsonParser(Reader r,
IOContext ctxt)
|
JsonParser |
JsonFactory.createJsonParser(byte[] data)
|
JsonParser |
JsonFactory.createJsonParser(byte[] data,
int offset,
int len)
|
JsonParser |
JsonFactory.createJsonParser(File f)
Method for constructing json parser instance to parse contents of specified file. |
JsonParser |
JsonFactory.createJsonParser(InputStream in)
Method for constructing json parser instance to parse the contents accessed via specified input stream. |
JsonParser |
JsonFactory.createJsonParser(Reader r)
Method for constructing json parser instance to parse the contents accessed via specified Reader. |
JsonParser |
JsonFactory.createJsonParser(String content)
|
JsonParser |
JsonFactory.createJsonParser(URL url)
Method for constructing json parser instance to parse contents of resource reference by given URL. |
abstract BigInteger |
JsonParser.getBigIntegerValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_INT and
it can not be used as a Java long primitive type due to its
magnitude. |
byte[] |
JsonParser.getBinaryValue()
Convenience alternative to JsonParser.getBinaryValue(Base64Variant)
that defaults to using
Base64Variants.getDefaultVariant() as the default encoding. |
abstract byte[] |
JsonParser.getBinaryValue(Base64Variant b64variant)
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. |
boolean |
JsonParser.getBooleanValue()
Convenience accessor that can be called when the current token is JsonToken.VALUE_TRUE or
JsonToken.VALUE_FALSE . |
byte |
JsonParser.getByteValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_INT and
it can be expressed as a value of Java byte primitive type. |
abstract String |
JsonParser.getCurrentName()
Method that can be called to get the name associated with the current token: for JsonToken.FIELD_NAME s it will
be the same as what JsonParser.getText() returns;
for field values it will be preceding field name;
and for others (array values, root-level values) null. |
abstract BigDecimal |
JsonParser.getDecimalValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_FLOAT or
JsonToken.VALUE_NUMBER_INT . |
abstract double |
JsonParser.getDoubleValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_FLOAT and
it can be expressed as a Java double primitive type. |
Object |
JsonParser.getEmbeddedObject()
Accessor that can be called if (and only if) the current token is JsonToken.VALUE_EMBEDDED_OBJECT . |
abstract float |
JsonParser.getFloatValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_FLOAT and
it can be expressed as a Java float primitive type. |
abstract int |
JsonParser.getIntValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_INT and
it can be expressed as a value of Java int primitive type. |
abstract long |
JsonParser.getLongValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_INT and
it can be expressed as a Java long primitive type. |
abstract JsonParser.NumberType |
JsonParser.getNumberType()
If current token is of type JsonToken.VALUE_NUMBER_INT or
JsonToken.VALUE_NUMBER_FLOAT , returns
one of JsonParser.NumberType constants; otherwise returns null. |
abstract Number |
JsonParser.getNumberValue()
Generic number value accessor method that will work for all kinds of numeric values. |
short |
JsonParser.getShortValue()
Numeric accessor that can be called when the current token is of type JsonToken.VALUE_NUMBER_INT and
it can be expressed as a value of Java short primitive type. |
abstract String |
JsonParser.getText()
Method for accessing textual representation of the current token; if no current token (before first call to JsonParser.nextToken() , or
after encountering end-of-input), returns null. |
abstract char[] |
JsonParser.getTextCharacters()
Method similar to JsonParser.getText() , but that will return
underlying (unmodifiable) character array that contains
textual value, instead of constructing a String object
to contain this information. |
abstract int |
JsonParser.getTextLength()
Accessor used with JsonParser.getTextCharacters() , to know length
of String stored in returned buffer. |
abstract int |
JsonParser.getTextOffset()
Accessor used with JsonParser.getTextCharacters() , to know offset
of the first text content character within buffer. |
abstract JsonToken |
JsonParser.nextToken()
Main iteration method, which will advance stream enough to determine type of the next token, if any. |
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 . |
Uses of JsonParseException in org.codehaus.jackson.impl |
---|
Methods in org.codehaus.jackson.impl that return JsonParseException | |
---|---|
protected JsonParseException |
JsonParserBase._constructError(String msg,
Throwable t)
|
Methods in org.codehaus.jackson.impl that throw JsonParseException | |
---|---|
protected byte[] |
Utf8StreamParser._decodeBase64(Base64Variant b64variant)
|
protected byte[] |
ReaderBasedParser._decodeBase64(Base64Variant b64variant)
|
protected abstract byte[] |
JsonParserBase._decodeBase64(Base64Variant b64variant)
|
protected int |
Utf8StreamParser._decodeCharForError(int firstByte)
|
protected char |
Utf8StreamParser._decodeEscaped()
|
protected char |
ReaderBasedParser._decodeEscaped()
|
protected void |
Utf8StreamParser._finishString()
|
protected void |
ReaderBasedParser._finishString()
|
protected abstract void |
JsonParserBase._finishString()
|
protected void |
ReaderBasedParser._finishString2()
|
protected void |
JsonParserBase._handleEOF()
Method called when an EOF is encountered between tokens. |
protected JsonToken |
Utf8StreamParser._handleUnexpectedValue(int c)
Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content. |
protected JsonToken |
ReaderBasedParser._handleUnexpectedValue(int i)
Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content. |
protected Name |
Utf8StreamParser._handleUnusualFieldName(int ch)
Method called when we see non-white space character other than double quote, when expecting a field name. |
protected String |
ReaderBasedParser._handleUnusualFieldName(int i)
Method called when we see non-white space character other than double quote, when expecting a field name. |
protected void |
Utf8StreamParser._matchToken(JsonToken token)
|
protected void |
ReaderBasedParser._matchToken(JsonToken token)
Method called to much one of literal tokens we may expect |
protected Name |
Utf8StreamParser._parseApostropheFieldName()
|
protected String |
ReaderBasedParser._parseApostropheFieldName()
|
protected Name |
Utf8StreamParser._parseFieldName(int i)
|
protected String |
ReaderBasedParser._parseFieldName(int i)
|
protected void |
JsonParserBase._reportError(String msg)
|
protected void |
Utf8StreamParser._reportInvalidChar(int c)
|
protected void |
JsonParserBase._reportInvalidEOF()
|
protected void |
JsonParserBase._reportInvalidEOF(String msg)
|
protected void |
Utf8StreamParser._reportInvalidInitial(int mask)
|
protected void |
Utf8StreamParser._reportInvalidOther(int mask)
|
protected void |
Utf8StreamParser._reportInvalidOther(int mask,
int ptr)
|
protected void |
JsonParserBase._reportMismatchedEndMarker(int actCh,
char expCh)
|
protected void |
JsonParserBase._reportUnexpectedChar(int ch,
String comment)
|
protected void |
Utf8StreamParser._skipString()
Method called to skim through rest of unparsed String value, if it is not needed. |
protected void |
ReaderBasedParser._skipString()
Method called to skim through rest of unparsed String value, if it is not needed. |
protected void |
JsonParserBase._throwInvalidSpace(int i)
|
protected void |
JsonParserBase._throwUnquotedSpace(int i,
String ctxtDesc)
Method called to report a problem with unquoted control character. |
protected void |
JsonParserBase._wrapError(String msg,
Throwable t)
|
JsonParser |
ByteSourceBootstrapper.constructParser(int features,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols,
CharsToNameCanonicalizer rootCharSymbols)
|
protected void |
JsonNumericParserBase.convertNumberToBigDecimal()
|
protected void |
JsonNumericParserBase.convertNumberToBigInteger()
|
protected void |
JsonNumericParserBase.convertNumberToDouble()
|
protected void |
JsonNumericParserBase.convertNumberToInt()
|
protected void |
JsonNumericParserBase.convertNumberToLong()
|
JsonEncoding |
ByteSourceBootstrapper.detectEncoding()
Method that should be called after constructing an instace. |
BigInteger |
JsonNumericParserBase.getBigIntegerValue()
|
byte[] |
JsonParserBase.getBinaryValue(Base64Variant b64variant)
|
String |
JsonParserBase.getCurrentName()
Method that can be called to get the name associated with the current event. |
BigDecimal |
JsonNumericParserBase.getDecimalValue()
|
double |
JsonNumericParserBase.getDoubleValue()
|
float |
JsonNumericParserBase.getFloatValue()
|
int |
JsonNumericParserBase.getIntValue()
|
long |
JsonNumericParserBase.getLongValue()
|
protected char |
ReaderBasedParserBase.getNextChar(String eofMsg)
|
JsonParser.NumberType |
JsonNumericParserBase.getNumberType()
|
Number |
JsonNumericParserBase.getNumberValue()
|
String |
JsonParserBase.getText()
Method for accessing textual representation of the current event; if no current event (before first call to JsonParserBase.nextToken() , or
after encountering end-of-input), returns null. |
char[] |
JsonParserBase.getTextCharacters()
|
int |
JsonParserBase.getTextLength()
|
int |
JsonParserBase.getTextOffset()
|
JsonToken |
Utf8StreamParser.nextToken()
|
JsonToken |
ReaderBasedParser.nextToken()
|
abstract JsonToken |
JsonParserBase.nextToken()
|
protected Name |
Utf8StreamParser.parseEscapedFieldName(int[] quads,
int qlen,
int currQuad,
int ch,
int currQuadBytes)
Slower parsing method which is generally branched to when an escape sequence is detected (or alternatively for long names, or ones crossing input buffer boundary). |
protected Name |
Utf8StreamParser.parseLongFieldName(int q)
|
protected Name |
Utf8StreamParser.parseMediumFieldName(int q1,
int q2)
|
protected JsonToken |
Utf8NumericParser.parseNumberText(int c)
Initial parsing method for number values. |
protected JsonToken |
ReaderBasedNumericParser.parseNumberText(int ch)
Initial parsing method for number values. |
protected abstract JsonToken |
JsonNumericParserBase.parseNumberText(int ch)
|
protected void |
JsonNumericParserBase.parseNumericValue(int expType)
Method that will parse actual numeric value out of a syntactically valid number value. |
protected void |
JsonNumericParserBase.reportInvalidNumber(String msg)
|
protected void |
JsonNumericParserBase.reportOverflowInt()
|
protected void |
JsonNumericParserBase.reportOverflowLong()
|
protected void |
JsonNumericParserBase.reportUnexpectedNumberChar(int ch,
String comment)
|
JsonParser |
JsonParserBase.skipChildren()
|
protected Name |
Utf8StreamParser.slowParseFieldName()
Method called when not even first 8 bytes are guaranteed to come consequtively. |
Uses of JsonParseException in org.codehaus.jackson.jaxrs |
---|
Methods in org.codehaus.jackson.jaxrs with parameters of type JsonParseException | |
---|---|
javax.ws.rs.core.Response |
JsonParseExceptionMapper.toResponse(JsonParseException exception)
|
Uses of JsonParseException in org.codehaus.jackson.map |
---|
Methods in org.codehaus.jackson.map that throw JsonParseException | ||
---|---|---|
protected JsonToken |
ObjectMapper._initForReading(JsonParser jp)
Method called to ensure that given parser is ready for reading content for data binding. |
|
protected Object |
ObjectMapper._readMapAndClose(JsonParser jp,
JavaType valueType)
|
|
protected Object |
ObjectMapper._readValue(DeserializationConfig cfg,
JsonParser jp,
JavaType valueType)
Actual implementation of value reading+binding operation. |
|
JsonNode |
TreeMapper.readTree(byte[] jsonContent)
Deprecated. |
|
JsonNode |
TreeMapper.readTree(File src)
Deprecated. |
|
JsonNode |
TreeMapper.readTree(InputStream src)
Deprecated. |
|
JsonNode |
TreeMapper.readTree(JsonParser jp)
Deprecated. Method that will try to read a sub-tree using given parser, map it to a tree (represented by a root JsonNode) and return it, if possible. |
|
JsonNode |
TreeMapper.readTree(Reader src)
Deprecated. |
|
JsonNode |
TreeMapper.readTree(String jsonContent)
Deprecated. |
|
JsonNode |
TreeMapper.readTree(URL src)
Deprecated. |
|
|
ObjectMapper.readValue(byte[] src,
int offset,
int len,
Class<T> valueType)
|
|
|
ObjectMapper.readValue(byte[] src,
int offset,
int len,
JavaType valueType)
|
|
|
ObjectMapper.readValue(byte[] src,
int offset,
int len,
TypeReference valueTypeRef)
|
|
|
ObjectMapper.readValue(File src,
Class<T> valueType)
|
|
|
ObjectMapper.readValue(File src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(File src,
TypeReference valueTypeRef)
|
|
|
ObjectMapper.readValue(InputStream src,
Class<T> valueType)
|
|
|
ObjectMapper.readValue(InputStream src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(InputStream src,
TypeReference valueTypeRef)
|
|
|
ObjectMapper.readValue(JsonParser jp,
Class<T> valueType)
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean ). |
|
|
ObjectMapper.readValue(JsonParser jp,
Class<T> valueType,
DeserializationConfig cfg)
Method to deserialize Json content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean ). |
|
|
ObjectMapper.readValue(JsonParser jp,
JavaType valueType)
Method to deserialize Json content into a Java type, reference to which is passed as argument. |
|
|
ObjectMapper.readValue(JsonParser jp,
JavaType valueType,
DeserializationConfig cfg)
Method to deserialize Json content into a Java type, reference to which is passed as argument. |
|
|
ObjectMapper.readValue(JsonParser jp,
TypeReference<?> valueTypeRef)
Method to deserialize Json content into a Java type, reference to which is passed as argument. |
|
|
ObjectMapper.readValue(JsonParser jp,
TypeReference<?> valueTypeRef,
DeserializationConfig cfg)
Method to deserialize Json content into a Java type, reference to which is passed as argument. |
|
|
ObjectMapper.readValue(Reader src,
Class<T> valueType)
|
|
|
ObjectMapper.readValue(Reader src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(Reader src,
TypeReference valueTypeRef)
|
|
|
ObjectMapper.readValue(String content,
Class<T> valueType)
|
|
|
ObjectMapper.readValue(String content,
JavaType valueType)
|
|
|
ObjectMapper.readValue(String content,
TypeReference valueTypeRef)
|
|
|
ObjectMapper.readValue(URL src,
Class<T> valueType)
|
|
|
ObjectMapper.readValue(URL src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(URL src,
TypeReference valueTypeRef)
|
|
|
ObjectMapper.treeToValue(JsonNode n,
Class<T> valueType)
|
|
void |
TreeMapper.writeTree(JsonNode rootNode,
File dst)
Deprecated. |
|
void |
TreeMapper.writeTree(JsonNode rootNode,
OutputStream dst)
Deprecated. |
|
void |
TreeMapper.writeTree(JsonNode rootNode,
Writer dst)
Deprecated. |
Uses of JsonParseException in org.codehaus.jackson.node |
---|
Methods in org.codehaus.jackson.node that throw JsonParseException | |
---|---|
protected void |
TextNode._reportBase64EOF()
|
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex)
|
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
String msg)
|
protected JsonNode |
TreeTraversingParser.currentNumericNode()
|
BigInteger |
TreeTraversingParser.getBigIntegerValue()
|
byte[] |
TreeTraversingParser.getBinaryValue(Base64Variant b64variant)
|
BigDecimal |
TreeTraversingParser.getDecimalValue()
|
double |
TreeTraversingParser.getDoubleValue()
|
float |
TreeTraversingParser.getFloatValue()
|
int |
TreeTraversingParser.getIntValue()
|
long |
TreeTraversingParser.getLongValue()
|
JsonParser.NumberType |
TreeTraversingParser.getNumberType()
|
Number |
TreeTraversingParser.getNumberValue()
|
char[] |
TreeTraversingParser.getTextCharacters()
|
int |
TreeTraversingParser.getTextLength()
|
int |
TreeTraversingParser.getTextOffset()
|
JsonToken |
TreeTraversingParser.nextToken()
|
JsonParser |
TreeTraversingParser.skipChildren()
|
Uses of JsonParseException in org.codehaus.jackson.util |
---|
Methods in org.codehaus.jackson.util that throw JsonParseException | |
---|---|
protected void |
TokenBuffer.Parser._checkIsNumber()
|
protected void |
TokenBuffer.Parser._decodeBase64(String str,
ByteArrayBuilder builder,
Base64Variant b64variant)
|
protected void |
TokenBuffer.Parser._reportBase64EOF()
|
protected void |
TokenBuffer.Parser._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
String msg)
|
BigInteger |
TokenBuffer.Parser.getBigIntegerValue()
|
BigInteger |
JsonParserDelegate.getBigIntegerValue()
|
byte[] |
TokenBuffer.Parser.getBinaryValue(Base64Variant b64variant)
|
byte[] |
JsonParserDelegate.getBinaryValue(Base64Variant b64variant)
|
byte |
JsonParserDelegate.getByteValue()
|
String |
JsonParserDelegate.getCurrentName()
|
BigDecimal |
TokenBuffer.Parser.getDecimalValue()
|
BigDecimal |
JsonParserDelegate.getDecimalValue()
|
double |
TokenBuffer.Parser.getDoubleValue()
|
double |
JsonParserDelegate.getDoubleValue()
|
float |
TokenBuffer.Parser.getFloatValue()
|
float |
JsonParserDelegate.getFloatValue()
|
int |
TokenBuffer.Parser.getIntValue()
|
int |
JsonParserDelegate.getIntValue()
|
long |
TokenBuffer.Parser.getLongValue()
|
long |
JsonParserDelegate.getLongValue()
|
JsonParser.NumberType |
TokenBuffer.Parser.getNumberType()
|
JsonParser.NumberType |
JsonParserDelegate.getNumberType()
|
Number |
TokenBuffer.Parser.getNumberValue()
|
Number |
JsonParserDelegate.getNumberValue()
|
short |
JsonParserDelegate.getShortValue()
|
String |
JsonParserDelegate.getText()
|
char[] |
JsonParserDelegate.getTextCharacters()
|
int |
JsonParserDelegate.getTextLength()
|
int |
JsonParserDelegate.getTextOffset()
|
JsonToken |
TokenBuffer.Parser.nextToken()
|
JsonToken |
JsonParserSequence.nextToken()
|
JsonToken |
JsonParserDelegate.nextToken()
|
JsonParser |
TokenBuffer.Parser.skipChildren()
|
JsonParser |
JsonParserDelegate.skipChildren()
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |