BeanIO 2.0.4

org.beanio.internal.compiler.fixedlength
Class FixedLengthPreprocessor

java.lang.Object
  extended by org.beanio.internal.compiler.ProcessorSupport
      extended by org.beanio.internal.compiler.Preprocessor
          extended by org.beanio.internal.compiler.flat.FlatPreprocessor
              extended by org.beanio.internal.compiler.fixedlength.FixedLengthPreprocessor

public class FixedLengthPreprocessor
extends FlatPreprocessor

Configuration Preprocessor for a fixed length stream format.

Since:
2.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.internal.compiler.Preprocessor
propertyRoot, stream
 
Constructor Summary
FixedLengthPreprocessor(StreamConfig stream)
          Constructs a new FixedLengthPreprocessor.
 
Method Summary
protected  int getSize(FieldConfig field)
          Returns the size of a field.
protected  boolean isFixedLength()
          Returns whether the stream format is fixed length.
 
Methods inherited from class org.beanio.internal.compiler.flat.FlatPreprocessor
finalizeRecord, finalizeSegment, handleField, initializeRecord
 
Methods inherited from class org.beanio.internal.compiler.Preprocessor
finalizeGroup, finalizeStream, handleConstant, initializeGroup, initializeSegment, initializeStream, validateRecordIdentifyingCriteria
 
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

FixedLengthPreprocessor

public FixedLengthPreprocessor(StreamConfig stream)
Constructs a new FixedLengthPreprocessor.

Parameters:
stream - the stream configuration to pre-process
Method Detail

getSize

protected int getSize(FieldConfig field)
Description copied from class: FlatPreprocessor
Returns the size of a field.

Overrides:
getSize in class FlatPreprocessor
Parameters:
field - the field to size
Returns:
the field size

isFixedLength

protected boolean isFixedLength()
Description copied from class: FlatPreprocessor
Returns whether the stream format is fixed length.

Overrides:
isFixedLength in class FlatPreprocessor
Returns:
true if fixed length, false otherwise

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim