BeanIO 2.0.4

org.beanio.internal.compiler.fixedlength
Class FixedLengthParserFactory

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
              extended by org.beanio.internal.compiler.fixedlength.FixedLengthParserFactory
All Implemented Interfaces:
ParserFactory

public class FixedLengthParserFactory
extends FlatParserFactory

A ParserFactory for the fixed length stream format.

Since:
2.0
Author:
Kevin Seim

Constructor Summary
FixedLengthParserFactory()
          Constructs a new FixedLengthParserFactory.
 
Method Summary
 FieldFormat createFieldFormat(FieldConfig config, Class<?> type)
          Creates a format specific FieldFormat.
protected  Preprocessor createPreprocessor(StreamConfig config)
          Creates a stream configuration pre-processor.
 RecordFormat createRecordFormat(RecordConfig config)
          Creates a format specific RecordFormat.
 StreamFormat createStreamFormat(StreamConfig config)
          Creates a format specific StreamFormat.
protected  RecordParserFactory getDefaultRecordParserFactory()
          Returns the default RecordParserFactory.
 
Methods inherited from class org.beanio.internal.compiler.flat.FlatParserFactory
finalizeRecord
 
Methods inherited from class org.beanio.internal.compiler.ParserFactorySupport
createAggregation, createProperty, createRecordAggregation, createRecordParserFactory, createStream, finalizeGroup, finalizeGroup, finalizeGroupIteration, finalizeGroupMain, finalizeRecord, finalizeRecordIteration, finalizeRecordMain, finalizeSegment, finalizeSegment, finalizeSegmentIteration, finalizeSegmentMain, finalizeStream, getBeanClass, 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

FixedLengthParserFactory

public FixedLengthParserFactory()
Constructs a new FixedLengthParserFactory.

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 FlatParserFactory
Parameters:
config - the stream configuration to pre-process
Returns:
the new Preprocessor

createStreamFormat

public StreamFormat createStreamFormat(StreamConfig config)
Description copied from class: ParserFactorySupport
Creates a format specific StreamFormat.

Specified by:
createStreamFormat in class ParserFactorySupport
Parameters:
config - the stream configuration
Returns:
the new StreamFormat

createRecordFormat

public RecordFormat createRecordFormat(RecordConfig config)
Description copied from class: ParserFactorySupport
Creates a format specific RecordFormat.

Specified by:
createRecordFormat in class ParserFactorySupport
Parameters:
config - the record configuration
Returns:
the new RecordFormat

createFieldFormat

public FieldFormat createFieldFormat(FieldConfig config,
                                     Class<?> type)
Description copied from class: ParserFactorySupport
Creates a format specific FieldFormat.

Specified by:
createFieldFormat in class ParserFactorySupport
Parameters:
config - the field configuration
type - the property type, or null if not bound to a property
Returns:
the new FieldFormat

getDefaultRecordParserFactory

protected RecordParserFactory getDefaultRecordParserFactory()
Description copied from class: ParserFactorySupport
Returns the default RecordParserFactory.

Specified by:
getDefaultRecordParserFactory in class ParserFactorySupport
Returns:
the RecordParserFactory

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim