Uses of Class
org.codehaus.jackson.JsonToken
-
Packages that use JsonToken Package Description org.codehaus.jackson Main public API classes of the core streaming JSON processor: most importantlyJsonFactoryused 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.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 viaObjectMapperclass, as well as convenience methods included inJsonParserorg.codehaus.jackson.map.deser Contains implementation classes of deserialization part of data binding.org.codehaus.jackson.node Contains concreteJsonNodeimplementations Jackson uses for the Tree model.org.codehaus.jackson.smile Package that contains experimental implementation of "Binary-Encoded JSON-Like" data format handlers (parser, generator, factory produce both, supporting constants).org.codehaus.jackson.util Utility classes used by Jackson Core functionality. -
-
Uses of JsonToken in org.codehaus.jackson
Fields in org.codehaus.jackson declared as JsonToken Modifier and Type Field Description protected JsonTokenJsonParser. _currTokenLast token retrieved viaJsonParser.nextToken(), if any.protected JsonTokenJsonParser. _lastClearedTokenLast cleared token, if any: that is, value that was in effect whenJsonParser.clearCurrentToken()was called.Methods in org.codehaus.jackson that return JsonToken Modifier and Type Method Description abstract JsonTokenJsonNode. asToken()Method that can be used for efficient type detection when using stream abstraction for traversing nodes.JsonTokenJsonParser. getCurrentToken()Accessor to find which token parser currently points to, if any; null will be returned if none.JsonTokenJsonParser. getLastClearedToken()Method that can be called to get the last token that was cleared usingJsonParser.clearCurrentToken().abstract JsonTokenJsonParser. nextToken()Main iteration method, which will advance stream enough to determine type of the next token, if any.JsonTokenJsonParser. 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).static JsonTokenJsonToken. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JsonToken[]JsonToken. values()Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of JsonToken in org.codehaus.jackson.impl
Fields in org.codehaus.jackson.impl declared as JsonToken Modifier and Type Field Description protected JsonTokenJsonParserBase. _nextTokenSecondary token related to the next token after current one; used if its type is known.Methods in org.codehaus.jackson.impl that return JsonToken Modifier and Type Method Description protected JsonTokenReaderBasedParser. _handleApostropheValue()protected JsonTokenUtf8StreamParser. _handleApostropheValue()protected JsonTokenReaderBasedParser. _handleInvalidNumberStart(int ch, boolean negative)Method called if expected numeric value (due to leading sign) does not look like a numberprotected JsonTokenUtf8StreamParser. _handleInvalidNumberStart(int ch, boolean negative)Method called if expected numeric value (due to leading sign) does not look like a numberprotected JsonTokenReaderBasedParser. _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 JsonTokenUtf8StreamParser. _handleUnexpectedValue(int c)Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.abstract JsonTokenJsonParserMinimalBase. nextToken()JsonTokenReaderBasedParser. nextToken()JsonTokenUtf8StreamParser. nextToken()protected JsonTokenReaderBasedParser. parseNumberText(int ch)Initial parsing method for number values.protected JsonTokenUtf8StreamParser. parseNumberText(int c)Initial parsing method for number values.protected JsonTokenJsonParserBase. reset(boolean negative, int intLen, int fractLen, int expLen)protected JsonTokenJsonParserBase. resetAsNaN(java.lang.String valueStr, double value)protected JsonTokenJsonParserBase. resetFloat(boolean negative, int intLen, int fractLen, int expLen)protected JsonTokenJsonParserBase. resetInt(boolean negative, int intLen)Methods in org.codehaus.jackson.impl with parameters of type JsonToken Modifier and Type Method Description protected java.lang.StringReaderBasedParser. _getText2(JsonToken t)protected java.lang.StringUtf8StreamParser. _getText2(JsonToken t) -
Uses of JsonToken in org.codehaus.jackson.map
Methods in org.codehaus.jackson.map that return JsonToken Modifier and Type Method Description protected JsonTokenObjectMapper. _initForReading(JsonParser jp)Method called to ensure that given parser is ready for reading content for data binding.protected static JsonTokenObjectReader. _initForReading(JsonParser jp)Methods in org.codehaus.jackson.map with parameters of type JsonToken Modifier and Type Method Description abstract JsonMappingExceptionDeserializationContext. mappingException(java.lang.Class<?> targetClass, JsonToken t)abstract JsonMappingExceptionDeserializationContext. wrongTokenException(JsonParser jp, JsonToken expToken, java.lang.String msg)Helper method for indicating that the current token was expected to be another token. -
Uses of JsonToken in org.codehaus.jackson.map.deser
Methods in org.codehaus.jackson.map.deser with parameters of type JsonToken Modifier and Type Method Description JsonMappingExceptionStdDeserializationContext. mappingException(java.lang.Class<?> targetClass, JsonToken token)JsonMappingExceptionStdDeserializationContext. wrongTokenException(JsonParser jp, JsonToken expToken, java.lang.String msg) -
Uses of JsonToken in org.codehaus.jackson.node
Fields in org.codehaus.jackson.node declared as JsonToken Modifier and Type Field Description protected JsonTokenTreeTraversingParser. _nextTokenSometimes parser needs to buffer a single look-ahead token; if so, it'll be stored here.Methods in org.codehaus.jackson.node that return JsonToken Modifier and Type Method Description JsonTokenArrayNode. asToken()abstract JsonTokenBaseJsonNode. asToken()Method that can be used for efficient type detection when using stream abstraction for traversing nodes.JsonTokenBigIntegerNode. asToken()JsonTokenBinaryNode. asToken()JsonTokenBooleanNode. asToken()abstract JsonTokenContainerNode. asToken()JsonTokenDecimalNode. asToken()JsonTokenDoubleNode. asToken()JsonTokenIntNode. asToken()JsonTokenLongNode. asToken()JsonTokenMissingNode. asToken()JsonTokenNullNode. asToken()JsonTokenObjectNode. asToken()JsonTokenPOJONode. asToken()JsonTokenTextNode. asToken()abstract JsonTokenValueNode. asToken()JsonTokenTreeTraversingParser. nextToken() -
Uses of JsonToken in org.codehaus.jackson.smile
Methods in org.codehaus.jackson.smile that return JsonToken Modifier and Type Method Description protected JsonTokenSmileParser. _handleFieldName()Method that handles initial token type recognition for token that has to be either FIELD_NAME or END_OBJECT.JsonTokenSmileParser. nextToken() -
Uses of JsonToken in org.codehaus.jackson.util
Methods in org.codehaus.jackson.util that return JsonToken Modifier and Type Method Description JsonTokenJsonParserDelegate. getCurrentToken()JsonTokenJsonParserDelegate. getLastClearedToken()JsonTokenJsonParserDelegate. nextToken()JsonTokenJsonParserSequence. nextToken()JsonTokenTokenBuffer.Parser. nextToken()JsonTokenTokenBuffer.Parser. peekNextToken()JsonTokenTokenBuffer.Segment. type(int index)Methods in org.codehaus.jackson.util with parameters of type JsonToken Modifier and Type Method Description protected voidTokenBuffer. _append(JsonToken type)protected voidTokenBuffer. _append(JsonToken type, java.lang.Object value)TokenBuffer.SegmentTokenBuffer.Segment. append(int index, JsonToken tokenType)TokenBuffer.SegmentTokenBuffer.Segment. append(int index, JsonToken tokenType, java.lang.Object value)voidTokenBuffer.Segment. set(int index, JsonToken tokenType)voidTokenBuffer.Segment. set(int index, JsonToken tokenType, java.lang.Object value)
-