Uses of Class
tools.jackson.core.io.IOContext
Packages that use IOContext
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).
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
Non-blocking ("async") JSON parser implementation.
-
Uses of IOContext in tools.jackson.core
Methods in tools.jackson.core that return IOContextModifier and TypeMethodDescriptionprotected IOContextTokenStreamFactory._createContext(ContentReference contentRef, boolean resourceManaged) Overridable factory method that actually instantiates desired context object.protected IOContextTokenStreamFactory._createContext(ContentReference contentRef, boolean resourceManaged, JsonEncoding enc) Overridable factory method that actually instantiates desired context object. -
Uses of IOContext in tools.jackson.core.base
Fields in tools.jackson.core.base declared as IOContextModifier and TypeFieldDescriptionprotected final IOContextGeneratorBase._ioContextLow-level I/O context used mostly for buffer recycling.protected final IOContextParserMinimalBase._ioContextI/O context for this reader.Methods in tools.jackson.core.base that return IOContextModifier and TypeMethodDescriptionGeneratorBase.ioContext()Accessor for use byjackson-coreitself (tests in particular).Methods in tools.jackson.core.base with parameters of type IOContextModifier and TypeMethodDescriptionprotected abstract JsonGeneratorBinaryTSFactory._createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) Overridable factory method that actually instantiates generator for givenOutputStreamand context object, using UTF-8 encoding.protected abstract JsonGeneratorTextualTSFactory._createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out) Overridable factory method that actually instantiates generator for givenWriterand context object.protected 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) protected abstract JsonGeneratorTextualTSFactory._createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) Overridable factory method that actually instantiates generator for givenOutputStreamand context object, using UTF-8 encoding.protected WriterTextualTSFactory._createWriter(IOContext ioCtxt, OutputStream out, JsonEncoding enc) protected DataInputprotected InputStreamDecorableTSFactory._decorate(IOContext ioCtxt, InputStream in) protected OutputStreamDecorableTSFactory._decorate(IOContext ioCtxt, OutputStream out) protected Readerprotected WriterConstructors in tools.jackson.core.base with parameters of type IOContextModifierConstructorDescriptionprotectedGeneratorBase(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures) protectedParserBase(ObjectReadContext readCtxt, IOContext ctxt, int streamReadFeatures) protectedParserMinimalBase(ObjectReadContext readCtxt, IOContext ioCtxt, int streamReadFeatures) Main constructor for sub-classes to use -
Uses of IOContext in tools.jackson.core.io
Fields in tools.jackson.core.io declared as IOContextMethods in tools.jackson.core.io that return IOContextModifier and TypeMethodDescriptionIOContext.markBufferRecyclerReleased()Method to call to prevent_bufferRecyclerrelease uponclose(): called when_bufferRecyclerlife-cycle is externally managed.IOContext.setEncoding(JsonEncoding enc) Methods in tools.jackson.core.io with parameters of type IOContextModifier and TypeMethodDescriptionabstract InputStreamMethod called byJsonFactoryinstance when creating parser on given "raw" byte source.Method called byJsonFactoryinstance when creating parser given anDataInput, when this decorator has been registered.abstract InputStreamInputDecorator.decorate(IOContext ctxt, InputStream in) Method called byJsonFactoryinstance when creating parser given anInputStream, when this decorator has been registered.abstract ReaderMethod called byJsonFactoryinstance when creating parser given anReader, when this decorator has been registered.abstract OutputStreamOutputDecorator.decorate(IOContext ctxt, OutputStream out) Method called byJsonFactoryinstance when creating generator for givenOutputStream, when this decorator has been registered.abstract WriterMethod called byJsonFactoryinstance when creating generator for givenWriter, when this decorator has been registered.Constructors in tools.jackson.core.io with parameters of type IOContextModifierConstructorDescriptionMergedStream(IOContext ctxt, InputStream in, byte[] buf, int start, int end) UTF32Reader(IOContext ctxt, InputStream in, boolean autoClose, byte[] buf, int ptr, int len, boolean isBigEndian) UTF8Writer(IOContext ctxt, OutputStream out) -
Uses of IOContext in tools.jackson.core.json
Methods in tools.jackson.core.json that return IOContextModifier and TypeMethodDescriptionprotected IOContextJsonFactory._createNonBlockingContext(Object srcRef) Methods in tools.jackson.core.json with parameters of type IOContextModifier and TypeMethodDescriptionprotected JsonGeneratorJsonFactory._createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out) protected 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) protected JsonGeneratorJsonFactory._createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) Constructors in tools.jackson.core.json with parameters of type IOContextModifierConstructorDescriptionByteSourceJsonBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen) ByteSourceJsonBootstrapper(IOContext ctxt, InputStream in) protectedJsonGeneratorBase(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, SerializableString rootValueSeparator, PrettyPrinter pp, CharacterEscapes charEsc, int maxNonEscaped) protectedJsonParserBase(ObjectReadContext readCtxt, IOContext ctxt, int streamReadFeatures, int formatReadFeatures) ReaderBasedJsonParser(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatFeatures, Reader r, CharsToNameCanonicalizer st) Constructor called when input comes as aReader, and buffer allocation can be done using default mechanism.ReaderBasedJsonParser(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatFeatures, Reader r, CharsToNameCanonicalizer st, char[] inputBuffer, int start, int end, boolean bufferRecyclable) Constructor called when caller wants to provide input buffer directly (or needs to, in case of bootstrapping having read some of contents) and it may or may not be recyclable use standard recycle context.UTF8DataInputJsonParser(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatFeatures, DataInput inputData, ByteQuadsCanonicalizer sym, int firstByte) UTF8JsonGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, OutputStream out, SerializableString rootValueSep, CharacterEscapes charEsc, PrettyPrinter pp, int maxNonEscaped, char quoteChar) UTF8JsonGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, OutputStream out, SerializableString rootValueSep, CharacterEscapes charEsc, PrettyPrinter pp, int maxNonEscaped, char quoteChar, byte[] outputBuffer, int outputOffset, boolean bufferRecyclable) UTF8StreamJsonParser(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatReadFeatures, InputStream in, ByteQuadsCanonicalizer sym, byte[] inputBuffer, int start, int end, int bytesPreProcessed, boolean bufferRecyclable) Constructor called when caller wants to provide input buffer directly (or needs to, in case of bootstrapping having read some of contents) and it may or may not be recyclable use standard recycle context.WriterBasedJsonGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int streamWriteFeatures, int formatWriteFeatures, Writer w, SerializableString rootValueSep, PrettyPrinter pp, CharacterEscapes charEsc, int maxNonEscaped, char quoteChar) -
Uses of IOContext in tools.jackson.core.json.async
Constructors in tools.jackson.core.json.async with parameters of type IOContextModifierConstructorDescriptionNonBlockingByteArrayJsonParser(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatReadFeatures, ByteQuadsCanonicalizer sym) NonBlockingByteBufferJsonParser(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatReadFeatures, ByteQuadsCanonicalizer sym) NonBlockingJsonParserBase(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatFeatures, ByteQuadsCanonicalizer sym) protectedNonBlockingUtf8JsonParserBase(ObjectReadContext readCtxt, IOContext ctxt, int stdFeatures, int formatFeatures, ByteQuadsCanonicalizer sym)