Class JsonPreprocessor
- java.lang.Object
-
- org.beanio.internal.compiler.ProcessorSupport
-
- org.beanio.internal.compiler.Preprocessor
-
- org.beanio.internal.compiler.json.JsonPreprocessor
-
public class JsonPreprocessor extends Preprocessor
ConfigurationPreprocessor
for the JSON stream format.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class org.beanio.internal.compiler.Preprocessor
propertyRoot, stream
-
-
Constructor Summary
Constructors Constructor Description JsonPreprocessor(StreamConfig stream)
Constructs a newJsonPreprocessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalizeSegment(SegmentConfig segment)
Finalizes a segment configuration after its children have been processed.protected void
handleField(FieldConfig field)
Processes a field configuration.protected void
initializeRecord(RecordConfig record)
Initializes a record configuration before its children have been processed.protected void
initializeSegment(SegmentConfig segment)
Initializes a segment configuration before its children have been processed.-
Methods inherited from class org.beanio.internal.compiler.Preprocessor
finalizeGroup, finalizeRecord, finalizeStream, handleConstant, initializeGroup, initializeStream, validateRecordIdentifyingCriteria
-
Methods inherited from class org.beanio.internal.compiler.ProcessorSupport
getParent, handleComponent, process
-
-
-
-
Constructor Detail
-
JsonPreprocessor
public JsonPreprocessor(StreamConfig stream)
Constructs a newJsonPreprocessor
.- Parameters:
stream
- theStreamConfig
to preprocess
-
-
Method Detail
-
initializeRecord
protected void initializeRecord(RecordConfig record) throws BeanIOConfigurationException
Description copied from class:Preprocessor
Initializes a record configuration before its children have been processed.- Overrides:
initializeRecord
in classPreprocessor
- Parameters:
record
- the record configuration to process- Throws:
BeanIOConfigurationException
-
initializeSegment
protected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurationException
Description copied from class:Preprocessor
Initializes a segment configuration before its children have been processed.- Overrides:
initializeSegment
in classPreprocessor
- Parameters:
segment
- the segment configuration to process- Throws:
BeanIOConfigurationException
-
finalizeSegment
protected void finalizeSegment(SegmentConfig segment) throws BeanIOConfigurationException
Description copied from class:Preprocessor
Finalizes a segment configuration after its children have been processed.- Overrides:
finalizeSegment
in classPreprocessor
- Parameters:
segment
- the segment configuration to process- Throws:
BeanIOConfigurationException
-
handleField
protected void handleField(FieldConfig field) throws BeanIOConfigurationException
Description copied from class:Preprocessor
Processes a field configuration.- Overrides:
handleField
in classPreprocessor
- Parameters:
field
- the field configuration to process- Throws:
BeanIOConfigurationException
-
-