Class FixedLengthPreprocessor
- java.lang.Object
-
- org.beanio.internal.compiler.ProcessorSupport
-
- org.beanio.internal.compiler.Preprocessor
-
- org.beanio.internal.compiler.flat.FlatPreprocessor
-
- org.beanio.internal.compiler.fixedlength.FixedLengthPreprocessor
-
public class FixedLengthPreprocessor extends FlatPreprocessor
ConfigurationPreprocessor
for a fixed length stream format.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class org.beanio.internal.compiler.Preprocessor
propertyRoot, stream
-
-
Constructor Summary
Constructors Constructor Description FixedLengthPreprocessor(StreamConfig stream)
Constructs a newFixedLengthPreprocessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, initializeSegment
-
Methods inherited from class org.beanio.internal.compiler.Preprocessor
finalizeGroup, finalizeStream, handleConstant, initializeGroup, initializeStream, validateRecordIdentifyingCriteria
-
Methods inherited from class org.beanio.internal.compiler.ProcessorSupport
getParent, handleComponent, process
-
-
-
-
Constructor Detail
-
FixedLengthPreprocessor
public FixedLengthPreprocessor(StreamConfig stream)
Constructs a newFixedLengthPreprocessor
.- 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 classFlatPreprocessor
- 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 classFlatPreprocessor
- Returns:
- true if fixed length, false otherwise
-
-