BeanIO 1.2.3

org.beanio.config.fixedlength
Class FixedLengthStreamDefinitionFactory

java.lang.Object
  extended by org.beanio.config.StreamDefinitionFactory
      extended by org.beanio.config.flat.FlatStreamDefinitionFactory
          extended by org.beanio.config.fixedlength.FixedLengthStreamDefinitionFactory

public class FixedLengthStreamDefinitionFactory
extends FlatStreamDefinitionFactory

A FixedLengthStreamDefinitionFactory is used to create fixed length stream definitions from a mapping configuration.

Since:
1.0
Author:
Kevin Seim

Constructor Summary
FixedLengthStreamDefinitionFactory()
           
 
Method Summary
protected  void assignDefaultFieldPositions(RecordConfig recordConfig, FlatRecordDefinition recordDefinition)
          Assigns a default position to all record fields.
protected  BeanDefinition newBeanDefinition(BeanConfig bean)
          Creates a new BeanDefinition.
protected  FieldDefinition newFieldDefinition(FieldConfig field)
          Creates a new FieldDefinition.
protected  RecordDefinition newRecordDefinition(RecordConfig record)
          Creates a new RecordDefinition.
protected  RecordReaderFactory newRecordReaderFactory()
          Creates a default record reader factory.
protected  RecordWriterFactory newRecordWriterFactory()
          Creates a default record writer factory
protected  StreamDefinition newStreamDefinition(StreamConfig stream)
          Creates a new StreamDefinition.
protected  void updateFieldDefinition(FieldConfig fieldConfig, FieldDefinition fieldDefinition)
          This method is called by compileFieldDefinitions to allow the configuration of format specific field configuration settings.
 
Methods inherited from class org.beanio.config.flat.FlatStreamDefinitionFactory
compileFieldDefinitions, validateCollections, validateOccurrences
 
Methods inherited from class org.beanio.config.StreamDefinitionFactory
compileBeanDefinition, compileBeanPropertyDefinition, compileFieldDefinition, compileFieldDefinitions, compileGroupDefinition, compileRecordDefinition, compileStreamDefinition, createStreamDefinition, getBeanClass, getDefaultTypeHandlerFactory, isOptionalBeanEnabled, isOptionalFieldEnabled, isReadEnabled, isWriteEnabled, newGroupDefinition, setTypeHandlerFactory, updateBeanDefinition, updateGroupDefinition, updateStreamDefinition, validateRecordIdentifyingCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedLengthStreamDefinitionFactory

public FixedLengthStreamDefinitionFactory()
Method Detail

updateFieldDefinition

protected void updateFieldDefinition(FieldConfig fieldConfig,
                                     FieldDefinition fieldDefinition)
Description copied from class: StreamDefinitionFactory
This method is called by compileFieldDefinitions to allow the configuration of format specific field configuration settings.

Overrides:
updateFieldDefinition in class StreamDefinitionFactory
Parameters:
fieldConfig - the field configuration
fieldDefinition - the field definition

assignDefaultFieldPositions

protected void assignDefaultFieldPositions(RecordConfig recordConfig,
                                           FlatRecordDefinition recordDefinition)
Description copied from class: FlatStreamDefinitionFactory
Assigns a default position to all record fields.

Specified by:
assignDefaultFieldPositions in class FlatStreamDefinitionFactory
Parameters:
recordConfig - the record configuration
recordDefinition - the record definition

newFieldDefinition

protected FieldDefinition newFieldDefinition(FieldConfig field)
Description copied from class: StreamDefinitionFactory
Creates a new FieldDefinition.

Specified by:
newFieldDefinition in class StreamDefinitionFactory
Parameters:
field - the field configuration
Returns:
the new FieldDefinition

newBeanDefinition

protected BeanDefinition newBeanDefinition(BeanConfig bean)
Description copied from class: StreamDefinitionFactory
Creates a new BeanDefinition.

Specified by:
newBeanDefinition in class StreamDefinitionFactory
Parameters:
bean - the bean configuration
Returns:
the new BeanDefinition

newRecordDefinition

protected RecordDefinition newRecordDefinition(RecordConfig record)
Description copied from class: StreamDefinitionFactory
Creates a new RecordDefinition.

Specified by:
newRecordDefinition in class StreamDefinitionFactory
Parameters:
record - the record configuration
Returns:
the new RecordDefinition

newStreamDefinition

protected StreamDefinition newStreamDefinition(StreamConfig stream)
Description copied from class: StreamDefinitionFactory
Creates a new StreamDefinition.

Specified by:
newStreamDefinition in class StreamDefinitionFactory
Parameters:
stream - the stream configuration
Returns:
the new StreamDefinition

newRecordReaderFactory

protected RecordReaderFactory newRecordReaderFactory()
Description copied from class: StreamDefinitionFactory
Creates a default record reader factory.

Specified by:
newRecordReaderFactory in class StreamDefinitionFactory
Returns:
the new RecordReaderFactory

newRecordWriterFactory

protected RecordWriterFactory newRecordWriterFactory()
Description copied from class: StreamDefinitionFactory
Creates a default record writer factory

Specified by:
newRecordWriterFactory in class StreamDefinitionFactory
Returns:
the new RecordWriterFactory

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim