Top Description Inners Fields Constructors Methods
tools.jackson.core.base

public abstract Class DecorableTSFactory

extends TokenStreamFactory
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
tools.jackson.core.base.TextualTSFactory, tools.jackson.core.base.BinaryTSFactory
Imports
java.io.*, java.util.ArrayList, .List, tools.jackson.core.*, tools.jackson.core.io.*, tools.jackson.core.util.JsonGeneratorDecorator

Intermediate base TokenStreamFactory implementation that offers support for streams that allow decoration of low-level input sources and output targets.
Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
DecorableTSFactory.DecorableTSFBuilder<F extends TokenStreamFactory, T extends TSFBuilder<F, T>>

Since factory instances are immutable, a Builder class is needed for creating configurations for differently configured factory instances.

Field Summary

Modifier and TypeField and Description
protected List<JsonGeneratorDecorator>
protected final InputDecorator
_inputDecorator

Optional helper object that may decorate input sources, to do additional processing on input during parsing.

protected final OutputDecorator
_outputDecorator

Optional helper object that may decorate output object, to do additional processing on output during content generation.

private static final long
Inherited from tools.jackson.core.TokenStreamFactory:
_errorReportConfiguration_factoryFeatures_formatReadFeatures_formatWriteFeatures_recyclerPool_streamReadConstraints_streamReadFeatures_streamWriteConstraints_streamWriteFeaturesDEFAULT_FACTORY_FEATURE_FLAGSDEFAULT_STREAM_READ_FEATURE_FLAGSDEFAULT_STREAM_WRITE_FEATURE_FLAGSEMPTY_WRITE_CONTEXT

Constructor Summary

AccessConstructor and Description
protected
protected
DecorableTSFactory(DecorableTSFactory.DecorableTSFBuilder<?, ?>
Builder with configurations to use
baseBuilder
)

Constructor used by builders for instantiation.

protected

Method Summary

Modifier and TypeMethod and Description
protected static <T> List<T>
_copy(List<T> src)

protected InputStream
protected Reader
protected DataInput
protected OutputStream
protected Writer
_decorate(IOContext ioCtxt, Writer out)

protected JsonGenerator
public List<JsonGeneratorDecorator>
public InputDecorator
public OutputDecorator
Inherited from tools.jackson.core.TokenStreamFactory:
_checkRangeBoundsForByteArray_checkRangeBoundsForCharArray_createContentReference_createContentReference_createContext_createContext_createDataOutputWrapper_fileInputStream_fileOutputStream_getBufferRecycler_getRecyclerPool_optimizedStreamFromURL_pathInputStream_pathOutputStream_reportRangeError_unsupported_unsupported_wrapIOFailurecanHandleBinaryNativelycanParseAsynccanUseSchemaconstructCINameMatcherconstructNameMatchercopycreateGeneratorcreateGeneratorcreateGeneratorcreateGeneratorcreateGeneratorcreateGeneratorcreateGeneratorcreateGeneratorcreateGeneratorcreateNonBlockingByteArrayParsercreateNonBlockingByteBufferParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsercreateParsererrorReportConfigurationgetFactoryFeaturesgetFormatNamegetFormatReadFeaturesgetFormatReadFeatureTypegetFormatWriteFeaturesgetFormatWriteFeatureTypegetStreamReadFeaturesgetStreamWriteFeaturesisEnabledisEnabledisEnabledrebuildrequiresPropertyOrderingsnapshotstreamReadConstraintsstreamWriteConstraintsversion

Field Detail

_generatorDecoratorsback to summary
protected List<JsonGeneratorDecorator> _generatorDecorators
_inputDecoratorback to summary
protected final InputDecorator _inputDecorator

Optional helper object that may decorate input sources, to do additional processing on input during parsing.

_outputDecoratorback to summary
protected final OutputDecorator _outputDecorator

Optional helper object that may decorate output object, to do additional processing on output during content generation.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.core.TokenStreamFactory.serialVersionUID.

Constructor Detail

DecorableTSFactoryback to summary
protected DecorableTSFactory(StreamReadConstraints src, StreamWriteConstraints swc, ErrorReportConfiguration erc, int formatPF, int formatGF)
DecorableTSFactoryback to summary
protected DecorableTSFactory(DecorableTSFactory.DecorableTSFBuilder<?, ?> baseBuilder)

Constructor used by builders for instantiation.

Parameters
baseBuilder:DecorableTSFactory.DecorableTSFBuilder<?, ?>

Builder with configurations to use

Since
3.0
DecorableTSFactoryback to summary
protected DecorableTSFactory(DecorableTSFactory src)

Method Detail

_copyback to summary
protected static <T> List<T> _copy(List<T> src)
_decorateback to summary
protected InputStream _decorate(IOContext ioCtxt, InputStream in) throws JacksonException
_decorateback to summary
protected Reader _decorate(IOContext ioCtxt, Reader in) throws JacksonException
_decorateback to summary
protected DataInput _decorate(IOContext ioCtxt, DataInput in) throws JacksonException
_decorateback to summary
protected OutputStream _decorate(IOContext ioCtxt, OutputStream out) throws JacksonException
_decorateback to summary
protected Writer _decorate(IOContext ioCtxt, Writer out) throws JacksonException
_decorateback to summary
protected JsonGenerator _decorate(JsonGenerator result)
getGeneratorDecoratorsback to summary
public List<JsonGeneratorDecorator> getGeneratorDecorators()
getInputDecoratorback to summary
public InputDecorator getInputDecorator()
getOutputDecoratorback to summary
public OutputDecorator getOutputDecorator()
tools.jackson.core.base back to summary

public abstract Class DecorableTSFactory.DecorableTSFBuilder<F extends TokenStreamFactory, T extends TSFBuilder<F, T>>

extends TSFBuilder<F extends TokenStreamFactory, T extends TSFBuilder<F, T>>
Class Inheritance
Known Direct Subclasses
tools.jackson.core.json.JsonFactoryBuilder

Since factory instances are immutable, a Builder class is needed for creating configurations for differently configured factory instances.
Since
3.0

Field Summary

Modifier and TypeField and Description
protected List<JsonGeneratorDecorator>
protected InputDecorator
_inputDecorator

Optional helper object that may decorate input sources, to do additional processing on input during parsing.

protected OutputDecorator
_outputDecorator

Optional helper object that may decorate output object, to do additional processing on output during content generation.

Inherited from tools.jackson.core.TSFBuilder:
_errorReportConfiguration_factoryFeatures_formatReadFeatures_formatWriteFeatures_recyclerPool_streamReadConstraints_streamReadFeatures_streamWriteConstraints_streamWriteFeatures

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public T
public List<JsonGeneratorDecorator>
public InputDecorator
public T
public OutputDecorator
public T
Inherited from tools.jackson.core.TSFBuilder:
_thisbuildconfigureconfigureconfigureconfigureForJackson2disabledisabledisabledisabledisableenableenableenableenableenableerrorReportConfigurationfactoryFeaturesMaskformatReadFeaturesMaskformatWriteFeaturesMaskrecyclerPoolrecyclerPoolstreamReadConstraintsstreamReadFeaturesMaskstreamWriteConstraintsstreamWriteFeaturesMask

Field Detail

_generatorDecoratorsback to summary
protected List<JsonGeneratorDecorator> _generatorDecorators
_inputDecoratorback to summary
protected InputDecorator _inputDecorator

Optional helper object that may decorate input sources, to do additional processing on input during parsing.

_outputDecoratorback to summary
protected OutputDecorator _outputDecorator

Optional helper object that may decorate output object, to do additional processing on output during content generation.

Constructor Detail

DecorableTSFBuilderback to summary
protected DecorableTSFBuilder(StreamReadConstraints src, StreamWriteConstraints swc, ErrorReportConfiguration erc, int formatPF, int formatGF)
DecorableTSFBuilderback to summary
protected DecorableTSFBuilder(DecorableTSFactory base)

Method Detail

addDecoratorback to summary
public T addDecorator(JsonGeneratorDecorator dec)
generatorDecoratorsback to summary
public List<JsonGeneratorDecorator> generatorDecorators()
inputDecoratorback to summary
public InputDecorator inputDecorator()
inputDecoratorback to summary
public T inputDecorator(InputDecorator dec)
outputDecoratorback to summary
public OutputDecorator outputDecorator()
outputDecoratorback to summary
public T outputDecorator(OutputDecorator dec)