|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.config.StreamDefinitionFactory org.beanio.config.flat.FlatStreamDefinitionFactory org.beanio.config.fixedlength.FixedLengthStreamDefinitionFactory
public class FixedLengthStreamDefinitionFactory
A FixedLengthStreamDefinitionFactory is used to create fixed length stream definitions from a mapping configuration.
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedLengthStreamDefinitionFactory()
Method Detail |
---|
protected void updateFieldDefinition(FieldConfig fieldConfig, FieldDefinition fieldDefinition)
StreamDefinitionFactory
updateFieldDefinition
in class StreamDefinitionFactory
fieldConfig
- the field configurationfieldDefinition
- the field definitionprotected void assignDefaultFieldPositions(RecordConfig recordConfig, FlatRecordDefinition recordDefinition)
FlatStreamDefinitionFactory
assignDefaultFieldPositions
in class FlatStreamDefinitionFactory
recordConfig
- the record configurationrecordDefinition
- the record definitionprotected FieldDefinition newFieldDefinition(FieldConfig field)
StreamDefinitionFactory
newFieldDefinition
in class StreamDefinitionFactory
field
- the field configuration
protected BeanDefinition newBeanDefinition(BeanConfig bean)
StreamDefinitionFactory
newBeanDefinition
in class StreamDefinitionFactory
bean
- the bean configuration
protected RecordDefinition newRecordDefinition(RecordConfig record)
StreamDefinitionFactory
newRecordDefinition
in class StreamDefinitionFactory
record
- the record configuration
protected StreamDefinition newStreamDefinition(StreamConfig stream)
StreamDefinitionFactory
newStreamDefinition
in class StreamDefinitionFactory
stream
- the stream configuration
protected RecordReaderFactory newRecordReaderFactory()
StreamDefinitionFactory
newRecordReaderFactory
in class StreamDefinitionFactory
protected RecordWriterFactory newRecordWriterFactory()
StreamDefinitionFactory
newRecordWriterFactory
in class StreamDefinitionFactory
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |