Package org.beanio.builder
Class FixedLengthParserBuilder
- java.lang.Object
-
- org.beanio.builder.ParserBuilder
-
- org.beanio.builder.FixedLengthParserBuilder
-
public class FixedLengthParserBuilder extends ParserBuilder
Builder for fixed length stream parsers.- Since:
- 2.1.0
-
-
Constructor Summary
Constructors Constructor Description FixedLengthParserBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanConfig<RecordParserFactory>build()FixedLengthParserBuilderenableComments(java.lang.String... comments)Enables one or more line prefixes that indicate a commented line.FixedLengthParserBuilderenableLineContinuation(char c)Enables the given line continuation character.FixedLengthParserBuilderrecordTerminator(java.lang.String terminator)Sets the record terminator.
-
-
-
Method Detail
-
recordTerminator
public FixedLengthParserBuilder recordTerminator(java.lang.String terminator)
Sets the record terminator.- Parameters:
terminator- the record termination character- Returns:
- this
-
enableLineContinuation
public FixedLengthParserBuilder enableLineContinuation(char c)
Enables the given line continuation character.- Parameters:
c- the character- Returns:
- this
-
enableComments
public FixedLengthParserBuilder enableComments(java.lang.String... comments)
Enables one or more line prefixes that indicate a commented line.- Parameters:
comments- the list of prefixes- Returns:
- this
-
build
public BeanConfig<RecordParserFactory> build()
- Specified by:
buildin classParserBuilder
-
-