Package org.beanio.stream.fixedlength
Class FixedLengthParserConfiguration
- java.lang.Object
-
- org.beanio.stream.fixedlength.FixedLengthParserConfiguration
-
- Direct Known Subclasses:
FixedLengthRecordParserFactory
public class FixedLengthParserConfiguration extends java.lang.Object
Stores configuration settings for parsing fixed length formatted streams.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description FixedLengthParserConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String[]
getComments()
Returns the array of comment prefixes.java.lang.Character
getLineContinuationCharacter()
Returns the line continuation character.java.lang.String
getLineSeparator()
Deprecated.java.lang.String
getRecordTerminator()
Returns the character used to mark the end of a record.boolean
isCommentEnabled()
Returns whether one or more comment prefixes have been configured.boolean
isLineContinationEnabled()
Returns whether the line continuation character is enabled.void
setComments(java.lang.String[] comments)
Sets the array of comment prefixes.void
setLineContinuationCharacter(java.lang.Character lineContinuationCharacter)
Sets the line continuation character.void
setLineSeparator(java.lang.String lineSeparator)
Deprecated.void
setRecordTerminator(java.lang.String recordTerminator)
Sets the character used to mark the end of a record.
-
-
-
Method Detail
-
getLineContinuationCharacter
public java.lang.Character getLineContinuationCharacter()
Returns the line continuation character. By default, line continuation is disabled andnull
is returned.- Returns:
- the line continuation character or
null
if disabled
-
setLineContinuationCharacter
public void setLineContinuationCharacter(java.lang.Character lineContinuationCharacter)
Sets the line continuation character. Set tonull
to disable line continuation.- Parameters:
lineContinuationCharacter
- the line continuation character
-
isLineContinationEnabled
public boolean isLineContinationEnabled()
Returns whether the line continuation character is enabled. By default, line continuation is disabled.- Returns:
true
if the line continuation character is enabled
-
getRecordTerminator
public java.lang.String getRecordTerminator()
Returns the character used to mark the end of a record. By default, a carriage return (CR), line feed (LF), or CRLF sequence is used to signify the end of the record.- Returns:
- the record termination character
-
setRecordTerminator
public void setRecordTerminator(java.lang.String recordTerminator)
Sets the character used to mark the end of a record. If set tonull
, a carriage return (CR), line feed (LF), or CRLF sequence is used.- Parameters:
recordTerminator
- the record termination character
-
getComments
public java.lang.String[] getComments()
Returns the array of comment prefixes. If a line read from a stream begins with a configured comment prefix, the line is ignored. By default, no lines are considered commented.- Returns:
- the array of comment prefixes
-
setComments
public void setComments(java.lang.String[] comments)
Sets the array of comment prefixes. If a line read from a stream begins with a configured comment prefix, the line is ignored.- Parameters:
comments
- the array of comment prefixes
-
isCommentEnabled
public boolean isCommentEnabled()
Returns whether one or more comment prefixes have been configured.- Returns:
true
if one or more comment prefixes have been configured
-
getLineSeparator
@Deprecated public java.lang.String getLineSeparator()
Deprecated.Returns the text used to terminate a record. By default, the line separator is set to the value of theline.separator
system property.- Returns:
- the line separation text
-
setLineSeparator
@Deprecated public void setLineSeparator(java.lang.String lineSeparator)
Deprecated.Sets the text used to terminate a record. If set tonull
, the the value of theline.separator
system property is used to terminate records.- Parameters:
lineSeparator
- the line separation text
-
-