Uses of Class
tools.jackson.core.JsonParser
Packages that use JsonParser
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser)
and generator
(JsonGenerator)
instances.Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
Package for subtypes of
JacksonException
defined and used by streaming API.JSON-specific parser and generator implementation classes that
Jackson defines and uses.
Non-blocking ("async") JSON parser implementation.
Utility classes used by Jackson Core functionality.
-
Uses of JsonParser in tools.jackson.core
Methods in tools.jackson.core with type parameters of type JsonParserModifier and TypeMethodDescription<P extends JsonParser & ByteArrayFeeder>
PTokenStreamFactory.createNonBlockingByteArrayParser(ObjectReadContext readCtxt) Optional method for constructing parser for non-blocking parsing viaByteArrayFeederinterface (accessed usingnonBlockingInputFeeder()from constructed instance).<P extends JsonParser & ByteArrayFeeder>
PTokenStreamFactory.createNonBlockingByteBufferParser(ObjectReadContext readCtxt) Optional method for constructing parser for non-blocking parsing viaByteBufferFeederinterface (accessed usingnonBlockingInputFeeder()from constructed instance).Methods in tools.jackson.core that return JsonParserModifier and TypeMethodDescriptiondefault JsonParserObjectReadContext.createParser(byte[] content) default JsonParserObjectReadContext.createParser(byte[] content, int offset, int length) default JsonParserObjectReadContext.createParser(InputStream in) default JsonParserObjectReadContext.createParser(Reader r) default JsonParserObjectReadContext.createParser(String content) TokenStreamFactory.createParser(byte[] content) Deprecated.TokenStreamFactory.createParser(byte[] content, int offset, int len) Deprecated.TokenStreamFactory.createParser(char[] content) Deprecated.TokenStreamFactory.createParser(char[] content, int offset, int len) Deprecated.TokenStreamFactory.createParser(File f) Deprecated.TokenStreamFactory.createParser(InputStream in) Deprecated.TokenStreamFactory.createParser(Reader r) Deprecated.TokenStreamFactory.createParser(String content) Deprecated.TokenStreamFactory.createParser(ObjectReadContext readCtxt, byte[] data) Method for constructing parser for parsing the contents of given byte array.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, byte[] content, int offset, int len) Method for constructing parser for parsing the contents of given byte array.TokenStreamFactory.createParser(ObjectReadContext readCtxt, char[] content) Method for constructing parser for parsing contents of given char array.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, char[] content, int offset, int len) Method for constructing parser for parsing contents of given char array.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, DataInput in) Optional method for constructing parser for reading contents from specifiedDataInputinstance.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, File f) Method for constructing parser instance to decode contents of specified file.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, InputStream in) Method for constructing JSON parser instance to parse the contents accessed via specified input stream.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, Reader r) Method for constructing parser for parsing the contents accessed via specified Reader.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, String content) Method for constructing parser for parsing contents of given String.abstract JsonParserTokenStreamFactory.createParser(ObjectReadContext readCtxt, Path p) Method for constructing parser instance to decode contents of specified path.abstract 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.TreeNode.traverse(ObjectReadContext readCtxt) Method for constructing aJsonParserinstance for iterating over contents of the tree that this node is root of.default JsonParserObjectReadContext.treeAsTokens(TreeNode n) Convenience method for traversing over givenTreeNodeby exposing contents as aJsonParser.TreeCodec.treeAsTokens(TreeNode node) Methods in tools.jackson.core with parameters of type JsonParserModifier and TypeMethodDescriptionprotected voidJsonGenerator._copyCurrentContents(JsonParser p) protected voidJsonGenerator._copyCurrentFloatValue(JsonParser p) Method for copying currentJsonToken.VALUE_NUMBER_FLOATvalue; overridable by format backend implementations.protected voidJsonGenerator._copyCurrentFloatValueExact(JsonParser p) Method for copying currentJsonToken.VALUE_NUMBER_FLOATvalue; overridable by format backend implementations.protected voidJsonGenerator._copyCurrentIntValue(JsonParser p) Method for copying currentJsonToken.VALUE_NUMBER_FLOATvalue; overridable by format backend implementations.protected voidJsonGenerator._copyCurrentStringValue(JsonParser p) Method for copying currentJsonToken.VALUE_STRINGvalue; overridable by format backend implementations.voidJsonGenerator.copyCurrentEvent(JsonParser p) Method for copying contents of the current event that the given parser instance points to.voidJsonGenerator.copyCurrentEventExact(JsonParser p) Same asJsonGenerator.copyCurrentEvent(tools.jackson.core.JsonParser)with the exception that copying of numeric values tries to avoid any conversion losses; in particular for floating-point numbers.voidJsonGenerator.copyCurrentStructure(JsonParser p) Method for copying contents of the current event and following events that it encloses the given parser instance points to.<T extends TreeNode>
TObjectReadContext.Base.readTree(JsonParser p) <T extends TreeNode>
TObjectReadContext.readTree(JsonParser p) <T extends TreeNode>
TTreeCodec.readTree(JsonParser p) <T> TObjectReadContext.Base.readValue(JsonParser p, Class<T> valueType) <T> TObjectReadContext.Base.readValue(JsonParser p, ResolvedType type) <T> TObjectReadContext.Base.readValue(JsonParser p, TypeReference<T> valueTypeRef) <T> TObjectReadContext.readValue(JsonParser p, Class<T> valueType) <T> TObjectReadContext.readValue(JsonParser p, ResolvedType type) <T> TObjectReadContext.readValue(JsonParser p, TypeReference<T> valueTypeRef) -
Uses of JsonParser in tools.jackson.core.base
Subclasses of JsonParser in tools.jackson.core.baseModifier and TypeClassDescriptionclassIntermediate base class used by many (but not all) JacksonJsonParserimplementations.classIntermediate base class used by all JacksonJsonParserimplementations, but does not add any additional fields that depend on particular method of obtaining input.Methods in tools.jackson.core.base that return JsonParserModifier and TypeMethodDescriptionprotected abstract JsonParserBinaryTSFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len) protected abstract JsonParserBinaryTSFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, DataInput input) protected abstract JsonParserBinaryTSFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) protected abstract JsonParserTextualTSFactory._createParser(ObjectReadContext readCtxt, IOContext ctxt, byte[] data, int offset, int len) protected abstract JsonParserTextualTSFactory._createParser(ObjectReadContext readCtxt, IOContext ctxt, char[] data, int offset, int len, boolean recyclable) protected abstract JsonParserTextualTSFactory._createParser(ObjectReadContext readCtxt, IOContext ctxt, DataInput input) protected abstract JsonParserTextualTSFactory._createParser(ObjectReadContext readCtxt, IOContext ctxt, InputStream in) protected abstract JsonParserTextualTSFactory._createParser(ObjectReadContext readCtxt, IOContext ctxt, Reader r) BinaryTSFactory.createParser(ObjectReadContext readCtxt, byte[] data, int offset, int len) BinaryTSFactory.createParser(ObjectReadContext readCtxt, char[] content, int offset, int len) BinaryTSFactory.createParser(ObjectReadContext readCtxt, DataInput in) BinaryTSFactory.createParser(ObjectReadContext readCtxt, File f) BinaryTSFactory.createParser(ObjectReadContext readCtxt, InputStream in) BinaryTSFactory.createParser(ObjectReadContext readCtxt, Reader r) BinaryTSFactory.createParser(ObjectReadContext readCtxt, String content) BinaryTSFactory.createParser(ObjectReadContext readCtxt, Path p) TextualTSFactory.createParser(ObjectReadContext readCtxt, byte[] data, int offset, int len) TextualTSFactory.createParser(ObjectReadContext readCtxt, char[] content, int offset, int len) TextualTSFactory.createParser(ObjectReadContext readCtxt, DataInput in) TextualTSFactory.createParser(ObjectReadContext readCtxt, File f) TextualTSFactory.createParser(ObjectReadContext readCtxt, InputStream in) TextualTSFactory.createParser(ObjectReadContext readCtxt, Reader r) TextualTSFactory.createParser(ObjectReadContext readCtxt, String content) TextualTSFactory.createParser(ObjectReadContext readCtxt, Path p) ParserMinimalBase.skipChildren() -
Uses of JsonParser in tools.jackson.core.exc
Methods in tools.jackson.core.exc that return JsonParserMethods in tools.jackson.core.exc with parameters of type JsonParserModifier and TypeMethodDescriptionInputCoercionException.withParser(JsonParser p) Fluent method that may be used to assign originatingJsonParser, to be accessed usingStreamReadException.processor().StreamReadException.withParser(JsonParser p) Fluent method that may be used to assign originatingJsonParser, to be accessed usingStreamReadException.processor().Constructors in tools.jackson.core.exc with parameters of type JsonParserModifierConstructorDescriptionInputCoercionException(JsonParser p, String msg, JsonToken inputType, Class<?> targetType) Constructor that uses current parsing location as location, and sets processor (accessible viaStreamReadException.processor()) to specified parser.StreamReadException(JsonParser p, String msg) StreamReadException(JsonParser p, String msg, Throwable rootCause) StreamReadException(JsonParser p, String msg, TokenStreamLocation loc) StreamReadException(JsonParser p, String msg, TokenStreamLocation loc, Throwable rootCause) UnexpectedEndOfInputException(JsonParser p, JsonToken token, String msg) -
Uses of JsonParser in tools.jackson.core.filter
Subclasses of JsonParser in tools.jackson.core.filterModifier and TypeClassDescriptionclassSpecializedJsonParserDelegatethat allows use ofTokenFilterfor outputting a subset of content that is visible to callerMethods in tools.jackson.core.filter that return JsonParserModifier and TypeMethodDescriptionFilteringParserDelegate.skipChildren()Need to override, re-implement similar to how method defined inParserMinimalBase, to keep state correct here.Methods in tools.jackson.core.filter with parameters of type JsonParserModifier and TypeMethodDescriptionbooleanTokenFilter.includeValue(JsonParser p) Call made when verifying whether a scalar value is being read from a parser.Constructors in tools.jackson.core.filter with parameters of type JsonParserModifierConstructorDescriptionFilteringParserDelegate(JsonParser p, TokenFilter f, TokenFilter.Inclusion inclusion, boolean allowMultipleMatches) FilteringParserDelegate(JsonParser p, TokenFilter f, TokenFilter.Inclusion inclusion, boolean allowMultipleMatches, boolean allowNonBlockingParser) -
Uses of JsonParser in tools.jackson.core.json
Subclasses of JsonParser in tools.jackson.core.jsonModifier and TypeClassDescriptionclassAnother intermediate base class, only used by actual JSON-backed parser implementations.classThis is a concrete implementation ofJsonParser, which is based on aReaderto handle low-level character conversion tasks.classThis is a concrete implementation ofJsonParser, which is based on aDataInputas the input source.classThis is a concrete implementation ofJsonParser, which is based on aInputStreamas the input source.Methods in tools.jackson.core.json that return JsonParserModifier and TypeMethodDescriptionprotected JsonParserJsonFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len) protected JsonParserJsonFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, char[] data, int offset, int len, boolean recyclable) protected JsonParserJsonFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, DataInput input) protected JsonParserJsonFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) protected JsonParserJsonFactory._createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r) ByteSourceJsonBootstrapper.constructParser(ObjectReadContext readCtxt, int streamReadFeatures, int formatReadFeatures, ByteQuadsCanonicalizer rootByteSymbols, CharsToNameCanonicalizer rootCharSymbols, int factoryFeatures) JsonFactory.createNonBlockingByteArrayParser(ObjectReadContext readCtxt) JsonFactory.createNonBlockingByteBufferParser(ObjectReadContext readCtxt) Methods in tools.jackson.core.json with parameters of type JsonParser -
Uses of JsonParser in tools.jackson.core.json.async
Subclasses of JsonParser in tools.jackson.core.json.asyncModifier and TypeClassDescriptionclassNon-blocking parser implementation for JSON content that takes its input viabyte[]passed.classNon-blocking parser implementation for JSON content that takes its input viaByteBufferinstance(s) passed.classIntermediate base class for non-blocking JSON parsers.classNon-blocking parser base implementation for JSON content. -
Uses of JsonParser in tools.jackson.core.util
Subclasses of JsonParser in tools.jackson.core.utilModifier and TypeClassDescriptionclassHelper class that implements delegation pattern forJsonParser, to allow for simple overridability of basic parsing functionality.classHelper class that can be used to sequence multiple physicalJsonParsers to create a single logical sequence of tokens, as a singleJsonParser.Fields in tools.jackson.core.util declared as JsonParserModifier and TypeFieldDescriptionprotected final 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 tools.jackson.core.util that return JsonParserModifier and TypeMethodDescriptionJsonParserDelegate.delegate()Accessor for getting the immediateJsonParserthis parser delegates calls to.JsonParserDelegate.skipChildren()JsonParserSequence.skipChildren()Need to override, re-implement similar to how method defined inParserMinimalBase, to keep state correct here.Methods in tools.jackson.core.util with parameters of type JsonParserModifier and TypeMethodDescriptionvoidJsonGeneratorDelegate.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.Method parameters in tools.jackson.core.util with type arguments of type JsonParserModifier and TypeMethodDescriptionprotected voidJsonParserSequence.addFlattenedActiveParsers(List<JsonParser> listToAddIn) Constructors in tools.jackson.core.util with parameters of type JsonParserModifierConstructorDescriptionprotectedJsonParserSequence(boolean checkForExistingToken, JsonParser[] parsers)
TokenStreamFactory.createParser(ObjectReadContext,byte[])