BeanIO 2.0.4

org.beanio.internal.compiler.json
Class JsonPreprocessor

java.lang.Object
  extended by org.beanio.internal.compiler.ProcessorSupport
      extended by org.beanio.internal.compiler.Preprocessor
          extended by org.beanio.internal.compiler.json.JsonPreprocessor

public class JsonPreprocessor
extends Preprocessor

Configuration Preprocessor for the JSON stream format.

Since:
2.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.internal.compiler.Preprocessor
propertyRoot, stream
 
Constructor Summary
JsonPreprocessor(StreamConfig stream)
          Constructs a new JsonPreprocessor.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonPreprocessor

public JsonPreprocessor(StreamConfig stream)
Constructs a new JsonPreprocessor.

Parameters:
stream - the StreamConfig 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 class Preprocessor
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 class Preprocessor
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 class Preprocessor
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 class Preprocessor
Parameters:
field - the field configuration to process
Throws:
BeanIOConfigurationException

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim