BeanIO 2.0.4

org.beanio.internal.compiler.flat
Class FlatParserFactory

java.lang.Object
  extended by org.beanio.internal.compiler.ProcessorSupport
      extended by org.beanio.internal.compiler.ParserFactorySupport
          extended by 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
Author:
Kevin Seim

Constructor Summary
FlatParserFactory()
           
 
Method Summary
protected  Preprocessor createPreprocessor(StreamConfig config)
          Creates a stream configuration pre-processor.
protected  void finalizeRecord(RecordConfig config, Record record)
          Invoked by ParserFactorySupport.finalizeRecord(RecordConfig) to allow subclasses to perform further finalization of the created Record.
 
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, reflectCollectionType, reflectPropertyType, setClassLoader, setTypeHandlerFactory, updateConstructor
 
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

FlatParserFactory

public FlatParserFactory()
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 class ParserFactorySupport
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 by ParserFactorySupport.finalizeRecord(RecordConfig) to allow subclasses to perform further finalization of the created Record.

Overrides:
finalizeRecord in class ParserFactorySupport
Parameters:
config - the record configuration
record - the Record being finalized

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim