|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.compiler.ProcessorSupport org.beanio.internal.compiler.ParserFactorySupport org.beanio.internal.compiler.json.JsonParserFactory
public class JsonParserFactory
A ParserFactory
for the JSON stream format.
Constructor Summary | |
---|---|
JsonParserFactory()
Constructs a new JsonParserFactory. |
Methods inherited from class org.beanio.internal.compiler.ProcessorSupport |
---|
getParent, handleComponent, process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonParserFactory()
Method Detail |
---|
protected Preprocessor createPreprocessor(StreamConfig config)
ParserFactorySupport
createPreprocessor
in class ParserFactorySupport
config
- the stream configuration to pre-process
Preprocessor
public Stream createStream(StreamConfig config) throws BeanIOConfigurationException
ParserFactorySupport
createStream
in interface ParserFactory
createStream
in class ParserFactorySupport
config
- the stream configuration
Stream
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)
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 void finalizeSegmentMain(SegmentConfig config) throws BeanIOConfigurationException
ParserFactorySupport
ParserFactorySupport.finalizeSegment(SegmentConfig)
to finalize the segment component.
finalizeSegmentMain
in class ParserFactorySupport
config
- the segment configuration
BeanIOConfigurationException
protected boolean isSegmentRequired(SegmentConfig config)
isSegmentRequired
in class ParserFactorySupport
protected StreamFormat createStreamFormat(StreamConfig config)
ParserFactorySupport
StreamFormat
.
createStreamFormat
in class ParserFactorySupport
config
- the stream configuration
StreamFormat
protected RecordFormat createRecordFormat(RecordConfig config)
ParserFactorySupport
RecordFormat
.
createRecordFormat
in class ParserFactorySupport
config
- the record configuration
RecordFormat
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 property
FieldFormat
protected RecordParserFactory getDefaultRecordParserFactory()
ParserFactorySupport
RecordParserFactory
.
getDefaultRecordParserFactory
in class ParserFactorySupport
RecordParserFactory
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |