Class FlatParserFactory
- java.lang.Object
-
- org.beanio.internal.compiler.ProcessorSupport
-
- org.beanio.internal.compiler.ParserFactorySupport
-
- org.beanio.internal.compiler.flat.FlatParserFactory
-
- All Implemented Interfaces:
ParserFactory
- Direct Known Subclasses:
DelimitedParserFactory
,FixedLengthParserFactory
public abstract class FlatParserFactory extends ParserFactorySupport
Base class for flat file format parser factories including CSV, delimited and fixed length formats.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description FlatParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Preprocessor
createPreprocessor(StreamConfig config)
Creates a stream configuration pre-processor.protected void
finalizeRecord(RecordConfig config, Record record)
Invoked byParserFactorySupport.finalizeRecord(RecordConfig)
to allow subclasses to perform further finalization of the createdRecord
.-
Methods inherited from class org.beanio.internal.compiler.ParserFactorySupport
createAggregation, createFieldFormat, createProperty, createRecordAggregation, createRecordFormat, createRecordParserFactory, createStream, createStreamFormat, finalizeGroup, finalizeGroup, finalizeGroupIteration, finalizeGroupMain, finalizeRecord, finalizeRecordIteration, finalizeRecordMain, finalizeSegment, finalizeSegment, finalizeSegmentIteration, finalizeSegmentMain, finalizeStream, getBeanClass, getDefaultRecordParserFactory, getField, handleConstant, handleField, initializeGroup, initializeGroupIteration, initializeGroupMain, initializeRecord, initializeRecordIteration, initializeRecordMain, initializeSegment, initializeSegmentIteration, initializeSegmentMain, initializeStream, isBound, isReadEnabled, isSegmentRequired, isWriteEnabled, parseDefaultValue, popParser, popProperty, pushParser, pushProperty, reflectAggregationType, reflectCollectionType, reflectPropertyType, reflectRecordAggregationType, setClassLoader, setTypeHandlerFactory, updateConstructor
-
Methods inherited from class org.beanio.internal.compiler.ProcessorSupport
getParent, handleComponent, process
-
-
-
-
Method Detail
-
createPreprocessor
protected Preprocessor createPreprocessor(StreamConfig config)
Description copied from class:ParserFactorySupport
Creates a stream configuration pre-processor. May be overridden to return a format specific version.- Overrides:
createPreprocessor
in classParserFactorySupport
- Parameters:
config
- the stream configuration to pre-process- Returns:
- the new
Preprocessor
-
finalizeRecord
protected void finalizeRecord(RecordConfig config, Record record)
Description copied from class:ParserFactorySupport
Invoked byParserFactorySupport.finalizeRecord(RecordConfig)
to allow subclasses to perform further finalization of the createdRecord
.- Overrides:
finalizeRecord
in classParserFactorySupport
- Parameters:
config
- the record configurationrecord
- theRecord
being finalized
-
-