Uses of Class
com.fasterxml.jackson.core.JsonParser
-
Packages that use JsonParser Package Description com.fasterxml.jackson.core Main public API classes of the core streaming JSON processor: most importantlyJsonFactoryused 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 ofJsonProcessingExceptionsubtypes contained by streaming API.com.fasterxml.jackson.core.filter com.fasterxml.jackson.core.format Package that contains interfaces needed for dynamic, pluggable format (auto)detection; as well as basic utility classes for simple format detection functionality.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.com.fasterxml.jackson.core.util Utility classes used by Jackson Core functionality. -
-
Uses of JsonParser in com.fasterxml.jackson.core
Methods in com.fasterxml.jackson.core that return JsonParser Modifier and Type Method Description protected JsonParserJsonFactory. _createParser(byte[] data, int offset, int len, IOContext ctxt)Overridable factory method that actually instantiates parser using givenReaderobject for reading content passed as raw byte array.protected JsonParserJsonFactory. _createParser(char[] data, int offset, int len, IOContext ctxt, boolean recyclable)Overridable factory method that actually instantiates parser using givenchar[]object for accessing content.protected JsonParserJsonFactory. _createParser(java.io.DataInput input, IOContext ctxt)Optional factory method, expected to be overriddenprotected JsonParserJsonFactory. _createParser(java.io.InputStream in, IOContext ctxt)Overridable factory method that actually instantiates desired parser givenInputStreamand context object.protected JsonParserJsonFactory. _createParser(java.io.Reader r, IOContext ctxt)Overridable factory method that actually instantiates parser using givenReaderobject for reading content.JsonParserJsonParser. configure(JsonParser.Feature f, boolean state)Method for enabling or disabling specified feature (checkJsonParser.Featurefor list of features)JsonParserJsonFactory. createJsonParser(byte[] data)Deprecated.Since 2.2, useJsonFactory.createParser(byte[])instead.JsonParserJsonFactory. createJsonParser(byte[] data, int offset, int len)Deprecated.Since 2.2, useJsonFactory.createParser(byte[],int,int)instead.JsonParserJsonFactory. createJsonParser(java.io.File f)Deprecated.Since 2.2, useJsonFactory.createParser(File)instead.JsonParserJsonFactory. createJsonParser(java.io.InputStream in)Deprecated.Since 2.2, useJsonFactory.createParser(InputStream)instead.JsonParserJsonFactory. createJsonParser(java.io.Reader r)Deprecated.Since 2.2, useJsonFactory.createParser(Reader)instead.JsonParserJsonFactory. createJsonParser(java.lang.String content)Deprecated.Since 2.2, useJsonFactory.createParser(String)instead.JsonParserJsonFactory. createJsonParser(java.net.URL url)Deprecated.Since 2.2, useJsonFactory.createParser(URL)instead.JsonParserJsonFactory. createNonBlockingByteArrayParser()Optional method for constructing parser for non-blocking parsing viaByteArrayFeederinterface (accessed usinggetNonBlockingInputFeeder()from constructed instance).abstract JsonParserTokenStreamFactory. createNonBlockingByteArrayParser()JsonParserJsonFactory. createParser(byte[] data)Method for constructing parser for parsing the contents of given byte array.JsonParserJsonFactory. createParser(byte[] data, int offset, int len)Method for constructing parser for parsing the contents of given byte array.JsonParserJsonFactory. createParser(char[] content)Method for constructing parser for parsing contents of given char array.JsonParserJsonFactory. createParser(char[] content, int offset, int len)Method for constructing parser for parsing contents of given char array.JsonParserJsonFactory. createParser(java.io.DataInput in)Optional method for constructing parser for reading contents from specifiedDataInputinstance.JsonParserJsonFactory. createParser(java.io.File f)Method for constructing JSON parser instance to parse contents of specified file.JsonParserJsonFactory. createParser(java.io.InputStream in)Method for constructing JSON parser instance to parse the contents accessed via specified input stream.JsonParserJsonFactory. createParser(java.io.Reader r)Method for constructing parser for parsing the contents accessed via specified Reader.JsonParserJsonFactory. createParser(java.lang.String content)Method for constructing parser for parsing contents of given String.JsonParserJsonFactory. createParser(java.net.URL url)Method for constructing JSON parser instance to parse contents of resource reference by given URL.abstract JsonParserTokenStreamFactory. createParser(byte[] data)abstract JsonParserTokenStreamFactory. createParser(byte[] data, int offset, int len)abstract JsonParserTokenStreamFactory. createParser(char[] content)abstract JsonParserTokenStreamFactory. createParser(char[] content, int offset, int len)abstract JsonParserTokenStreamFactory. createParser(java.io.DataInput in)abstract JsonParserTokenStreamFactory. createParser(java.io.File f)abstract JsonParserTokenStreamFactory. createParser(java.io.InputStream in)abstract JsonParserTokenStreamFactory. createParser(java.io.Reader r)abstract JsonParserTokenStreamFactory. createParser(java.lang.String content)abstract JsonParserTokenStreamFactory. createParser(java.net.URL url)JsonParserJsonParser. disable(JsonParser.Feature f)Method for disabling specified feature (checkJsonParser.Featurefor list of features)JsonParserJsonParser. enable(JsonParser.Feature f)Method for enabling specified parser feature (checkJsonParser.Featurefor list of features)JsonParserJsonParseException. getProcessor()JsonParserJsonParser. overrideFormatFeatures(int values, int mask)Bulk set method for (re)setting states ofFormatFeatures, by specifying values (set / clear) along with a mask, to determine which features to change, if any.JsonParserJsonParser. overrideStdFeatures(int values, int mask)Bulk set method for (re)setting states of features specified bymask.JsonParserJsonParser. setFeatureMask(int mask)Deprecated.Since 2.7, useoverrideStdFeatures(int, int)insteadabstract JsonParserJsonParser. skipChildren()Method that will skip all child tokens of an array or object token that the parser currently points to, iff stream points toJsonToken.START_OBJECTorJsonToken.START_ARRAY.JsonParserTreeNode. traverse()Method for constructing aJsonParserinstance for iterating over contents of the tree that this node is root of.JsonParserTreeNode. traverse(ObjectCodec codec)Same asTreeNode.traverse(), but additionally passesObjectCodecto use ifreadValueAs(Class)is used (otherwise caller must callsetCodec(com.fasterxml.jackson.core.ObjectCodec)on response explicitly).abstract JsonParserObjectCodec. treeAsTokens(TreeNode n)Method for constructing aJsonParserfor reading contents of a JSON tree, as if it was external serialized JSON content.abstract JsonParserTreeCodec. treeAsTokens(TreeNode node)Methods in com.fasterxml.jackson.core with parameters of type JsonParser Modifier and Type Method Description protected voidJsonGenerator. _copyCurrentContents(JsonParser p)voidJsonGenerator. copyCurrentEvent(JsonParser p)Method for copying contents of the current event that the given parser instance points to.voidJsonGenerator. copyCurrentStructure(JsonParser p)Method for copying contents of the current event and following events that it encloses the given parser instance points to.abstract <T extends TreeNode>
TObjectCodec. readTree(JsonParser p)Method for deserializing JSON content as tree expressed using set ofTreeNodeinstances.abstract <T extends TreeNode>
TTreeCodec. readTree(JsonParser p)abstract <T> TObjectCodec. readValue(JsonParser p, ResolvedType valueType)Method to deserialize JSON content into a POJO, type specified with fully resolved type object (so it can be a generic type, including containers likeCollectionandMap).abstract <T> TObjectCodec. readValue(JsonParser p, TypeReference<T> valueTypeRef)Method to deserialize JSON content into a Java type, reference to which is passed as argument.abstract <T> TObjectCodec. readValue(JsonParser p, java.lang.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 (likeBoolean).abstract <T> java.util.Iterator<T>ObjectCodec. readValues(JsonParser p, ResolvedType valueType)Method for reading sequence of Objects from parser stream, all with same specified value type.abstract <T> java.util.Iterator<T>ObjectCodec. readValues(JsonParser p, TypeReference<T> valueTypeRef)Method for reading sequence of Objects from parser stream, all with same specified value type.abstract <T> java.util.Iterator<T>ObjectCodec. readValues(JsonParser p, java.lang.Class<T> valueType)Method for reading sequence of Objects from parser stream, all with same specified value type.JsonParseExceptionJsonParseException. withParser(JsonParser p)Fluent method that may be used to assign originatingJsonParser, to be accessed usingJsonParseException.getProcessor().Constructors in com.fasterxml.jackson.core with parameters of type JsonParser Constructor Description JsonParseException(JsonParser p, java.lang.String msg)Constructor that uses current parsing location as location, and sets processor (accessible viaJsonParseException.getProcessor()) to specified parser.JsonParseException(JsonParser p, java.lang.String msg, JsonLocation loc)JsonParseException(JsonParser p, java.lang.String msg, JsonLocation loc, java.lang.Throwable root)JsonParseException(JsonParser p, java.lang.String msg, java.lang.Throwable root) -
Uses of JsonParser in com.fasterxml.jackson.core.base
Subclasses of JsonParser in com.fasterxml.jackson.core.base Modifier and Type Class Description classParserBaseIntermediate base class used by all JacksonJsonParserimplementations.classParserMinimalBaseIntermediate base class used by all JacksonJsonParserimplementations, but does not add any additional fields that depend on particular method of obtaining input.Methods in com.fasterxml.jackson.core.base that return JsonParser Modifier and Type Method Description JsonParserParserBase. disable(JsonParser.Feature f)JsonParserParserBase. enable(JsonParser.Feature f)JsonParserParserBase. overrideStdFeatures(int values, int mask)JsonParserParserBase. setFeatureMask(int newMask)Deprecated.JsonParserParserMinimalBase. skipChildren() -
Uses of JsonParser in com.fasterxml.jackson.core.exc
Fields in com.fasterxml.jackson.core.exc declared as JsonParser Modifier and Type Field Description protected JsonParserStreamReadException. _processorMethods in com.fasterxml.jackson.core.exc that return JsonParser Modifier and Type Method Description JsonParserStreamReadException. getProcessor()Methods in com.fasterxml.jackson.core.exc with parameters of type JsonParser Modifier and Type Method Description InputCoercionExceptionInputCoercionException. withParser(JsonParser p)Fluent method that may be used to assign originatingJsonParser, to be accessed usingStreamReadException.getProcessor().abstract StreamReadExceptionStreamReadException. withParser(JsonParser p)Fluent method that may be used to assign originatingJsonParser, to be accessed usingStreamReadException.getProcessor().Constructors in com.fasterxml.jackson.core.exc with parameters of type JsonParser Constructor Description InputCoercionException(JsonParser p, java.lang.String msg, JsonToken inputType, java.lang.Class<?> targetType)Constructor that uses current parsing location as location, and sets processor (accessible viaStreamReadException.getProcessor()) to specified parser.StreamReadException(JsonParser p, java.lang.String msg)StreamReadException(JsonParser p, java.lang.String msg, JsonLocation loc)StreamReadException(JsonParser p, java.lang.String msg, java.lang.Throwable root) -
Uses of JsonParser in com.fasterxml.jackson.core.filter
Subclasses of JsonParser in com.fasterxml.jackson.core.filter Modifier and Type Class Description classFilteringParserDelegateSpecializedJsonParserDelegatethat allows use ofTokenFilterfor outputting a subset of content that is visible to callerMethods in com.fasterxml.jackson.core.filter that return JsonParser Modifier and Type Method Description JsonParserFilteringParserDelegate. skipChildren()Need to override, re-implement similar to how method defined inParserMinimalBase, to keep state correct here.Methods in com.fasterxml.jackson.core.filter with parameters of type JsonParser Modifier and Type Method Description booleanTokenFilter. includeValue(JsonParser p)Call made when verifying whether a scaler value is being read from a parser.Constructors in com.fasterxml.jackson.core.filter with parameters of type JsonParser Constructor Description FilteringParserDelegate(JsonParser p, TokenFilter f, boolean includePath, boolean allowMultipleMatches)Deprecated.FilteringParserDelegate(JsonParser p, TokenFilter f, TokenFilter.Inclusion inclusion, boolean allowMultipleMatches) -
Uses of JsonParser in com.fasterxml.jackson.core.format
Methods in com.fasterxml.jackson.core.format that return JsonParser Modifier and Type Method Description JsonParserDataFormatMatcher. createParserWithMatch()Convenience method for trying to construct aJsonParserfor parsing content which is assumed to be in detected data format. -
Uses of JsonParser in com.fasterxml.jackson.core.io
Constructors in com.fasterxml.jackson.core.io with parameters of type JsonParser Constructor Description JsonEOFException(JsonParser p, JsonToken token, java.lang.String msg) -
Uses of JsonParser in com.fasterxml.jackson.core.json
Subclasses of JsonParser in com.fasterxml.jackson.core.json Modifier and Type Class Description classReaderBasedJsonParserThis is a concrete implementation ofJsonParser, which is based on aReaderto handle low-level character conversion tasks.classUTF8DataInputJsonParserThis is a concrete implementation ofJsonParser, which is based on aDataInputas the input source.classUTF8StreamJsonParserThis is a concrete implementation ofJsonParser, which is based on aInputStreamas the input source.Methods in com.fasterxml.jackson.core.json that return JsonParser Modifier and Type Method Description JsonParserByteSourceJsonBootstrapper. constructParser(int parserFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols, CharsToNameCanonicalizer rootCharSymbols, int factoryFeatures)Methods in com.fasterxml.jackson.core.json with parameters of type JsonParser Modifier and Type Method Description static DupDetectorDupDetector. rootDetector(JsonParser p) -
Uses of JsonParser in com.fasterxml.jackson.core.json.async
Subclasses of JsonParser in com.fasterxml.jackson.core.json.async Modifier and Type Class Description classNonBlockingJsonParserNon-blocking parser implementation for JSON content.classNonBlockingJsonParserBaseIntermediate base class for non-blocking JSON parsers. -
Uses of JsonParser in com.fasterxml.jackson.core.util
Subclasses of JsonParser in com.fasterxml.jackson.core.util Modifier and Type Class Description classJsonParserDelegateHelper class that implements delegation pattern forJsonParser, to allow for simple overridability of basic parsing functionality.classJsonParserSequenceHelper class that can be used to sequence multiple physicalJsonParsers to create a single logical sequence of tokens, as a singleJsonParser.Fields in com.fasterxml.jackson.core.util declared as JsonParser Modifier and Type Field Description protected JsonParser[]JsonParserSequence. _parsersParsers other than the first one (which is initially assigned as delegate)protected JsonParserJsonParserDelegate. delegateDelegate object that method calls are delegated to.Methods in com.fasterxml.jackson.core.util that return JsonParser Modifier and Type Method Description JsonParserJsonParserDelegate. delegate()Accessor for getting the immediateJsonParserthis parser delegates calls to.JsonParserJsonParserDelegate. disable(JsonParser.Feature f)JsonParserJsonParserDelegate. enable(JsonParser.Feature f)JsonParserJsonParserDelegate. overrideFormatFeatures(int values, int mask)JsonParserJsonParserDelegate. overrideStdFeatures(int values, int mask)JsonParserJsonParserDelegate. setFeatureMask(int mask)Deprecated.JsonParserJsonParserDelegate. skipChildren()JsonParserJsonParserSequence. skipChildren()Need to override, re-implement similar to how method defined inParserMinimalBase, to keep state correct here.Methods in com.fasterxml.jackson.core.util with parameters of type JsonParser Modifier and Type Method Description voidJsonGeneratorDelegate. copyCurrentEvent(JsonParser p)voidJsonGeneratorDelegate. copyCurrentStructure(JsonParser p)static JsonParserSequenceJsonParserSequence. createFlattened(boolean checkForExistingToken, JsonParser first, JsonParser second)Method that will construct a sequence (possibly a sequence) that contains all given sub-parsers.static JsonParserSequenceJsonParserSequence. createFlattened(JsonParser first, JsonParser second)Deprecated.Method parameters in com.fasterxml.jackson.core.util with type arguments of type JsonParser Modifier and Type Method Description protected voidJsonParserSequence. addFlattenedActiveParsers(java.util.List<JsonParser> listToAddIn)Constructors in com.fasterxml.jackson.core.util with parameters of type JsonParser Constructor Description JsonParserDelegate(JsonParser d)JsonParserSequence(boolean checkForExistingToken, JsonParser[] parsers)JsonParserSequence(JsonParser[] parsers)Deprecated.
-