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
ConfigurationPreprocessorfor 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 intgetSize(FieldConfig field)Returns the size of a field.protected booleanisFixedLength()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:FlatPreprocessorReturns the size of a field.- Overrides:
getSizein classFlatPreprocessor- Parameters:
field- the field to size- Returns:
- the field size
-
isFixedLength
protected boolean isFixedLength()
Description copied from class:FlatPreprocessorReturns whether the stream format is fixed length.- Overrides:
isFixedLengthin classFlatPreprocessor- Returns:
- true if fixed length, false otherwise
-
-