public class JsonParserFactory extends ParserFactorySupport
ParserFactory
for the JSON stream format.popProperty
Constructor and Description |
---|
JsonParserFactory()
Constructs a new JsonParserFactory.
|
createAggregation, createProperty, createRecordAggregation, createRecordParserFactory, finalizeGroup, finalizeGroup, finalizeGroupIteration, finalizeGroupMain, finalizeRecord, finalizeRecord, finalizeRecordIteration, finalizeRecordMain, finalizeSegment, finalizeSegment, finalizeStream, getBeanClass, getField, handleConstant, handleField, initializeGroup, initializeGroupIteration, initializeGroupMain, initializeRecord, initializeRecordIteration, initializeRecordMain, initializeSegment, initializeStream, isBound, isReadEnabled, isWriteEnabled, parseDefaultValue, popParser, popProperty, pushParser, pushProperty, reflectAggregationType, reflectCollectionType, reflectPropertyType, reflectRecordAggregationType, setClassLoader, setTypeHandlerFactory, updateConstructor
getParent, handleComponent, process
protected Preprocessor createPreprocessor(StreamConfig config)
ParserFactorySupport
createPreprocessor
in class ParserFactorySupport
config
- the stream configuration to pre-processPreprocessor
public Stream createStream(StreamConfig config) throws BeanIOConfigurationException
ParserFactorySupport
createStream
in interface ParserFactory
createStream
in class ParserFactorySupport
config
- the stream configurationStream
BeanIOConfigurationException
- if the configuration is invalidprotected void initializeSegmentIteration(SegmentConfig config, Property property)
ParserFactorySupport
ParserFactorySupport.initializeSegment(SegmentConfig)
to initialize segment iteration.initializeSegmentIteration
in class ParserFactorySupport
config
- the segment configurationproperty
- the Property
bound to the segment, or null if no bean was boundprotected void finalizeSegmentIteration(SegmentConfig config, Property property)
ParserFactorySupport
ParserFactorySupport.finalizeSegment(SegmentConfig)
to finalize segment iteration.finalizeSegmentIteration
in class ParserFactorySupport
config
- the segment configurationprotected void initializeSegmentMain(SegmentConfig config, Property property)
ParserFactorySupport
ParserFactorySupport.initializeSegment(SegmentConfig)
to initialize the segment.initializeSegmentMain
in class ParserFactorySupport
config
- the segment configurationproperty
- the property bound to the segment, or null if no property was boundprotected Property finalizeSegmentMain(SegmentConfig config) throws BeanIOConfigurationException
ParserFactorySupport
ParserFactorySupport.finalizeSegment(SegmentConfig)
to finalize the segment component.finalizeSegmentMain
in class ParserFactorySupport
config
- the segment configurationBeanIOConfigurationException
protected boolean isSegmentRequired(SegmentConfig config)
isSegmentRequired
in class ParserFactorySupport
protected StreamFormat createStreamFormat(StreamConfig config)
ParserFactorySupport
StreamFormat
.createStreamFormat
in class ParserFactorySupport
config
- the stream configurationStreamFormat
protected RecordFormat createRecordFormat(RecordConfig config)
ParserFactorySupport
RecordFormat
.createRecordFormat
in class ParserFactorySupport
config
- the record configurationRecordFormat
protected FieldFormat createFieldFormat(FieldConfig config, Class<?> type)
ParserFactorySupport
FieldFormat
.createFieldFormat
in class ParserFactorySupport
config
- the field configurationtype
- the property type, or null if not bound to a propertyFieldFormat
protected RecordParserFactory getDefaultRecordParserFactory()
ParserFactorySupport
RecordParserFactory
.getDefaultRecordParserFactory
in class ParserFactorySupport
RecordParserFactory