public class FlatPreprocessor extends Preprocessor
Preprocessor implementations for flat stream formats
(i.e. CSV, delimited, and fixed length).propertyRoot, stream| Constructor and Description |
|---|
FlatPreprocessor(StreamConfig stream)
Constructs a new FlatPreprocessor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalizeRecord(RecordConfig record)
Finalizes a record configuration after its children have been processed.
|
protected void |
finalizeSegment(SegmentConfig segment)
Finalizes a segment configuration after its children have been processed.
|
protected int |
getSize(FieldConfig field)
Returns the size of a field.
|
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.
|
protected boolean |
isFixedLength()
Returns whether the stream format is fixed length.
|
finalizeGroup, finalizeStream, handleConstant, initializeGroup, initializeStream, validateRecordIdentifyingCriteriagetParent, handleComponent, processpublic FlatPreprocessor(StreamConfig stream)
stream - protected void initializeRecord(RecordConfig record)
PreprocessorinitializeRecord in class Preprocessorrecord - the record configuration to processprotected void finalizeRecord(RecordConfig record)
PreprocessorfinalizeRecord in class Preprocessorrecord - the record configuration to processprotected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurationException
PreprocessorinitializeSegment in class Preprocessorsegment - the segment configuration to processBeanIOConfigurationExceptionprotected void finalizeSegment(SegmentConfig segment)
PreprocessorfinalizeSegment in class Preprocessorsegment - the segment configuration to processprotected void handleField(FieldConfig field)
PreprocessorhandleField in class Preprocessorfield - the field configuration to processprotected int getSize(FieldConfig field)
field - the field to sizeprotected boolean isFixedLength()