public class TsvParserSettings extends CommonParserSettings<TsvFormat>
TsvParser)
It supports the configuration options provided by CommonParserSettings only
TsvParser,
TsvFormat,
CommonParserSettingsheaderExtractionEnabled| Constructor and Description |
|---|
TsvParserSettings() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConfiguration(Map<String,Object> out) |
TsvParserSettings |
clone()
Clones this configuration object.
|
TsvParserSettings |
clone(boolean clearInputSpecificSettings)
Clones this configuration object to reuse user-provided settings.
|
protected TsvFormat |
createDefaultFormat()
Returns the default TsvFormat configured to handle TSV inputs
|
boolean |
isLineJoiningEnabled()
Identifies whether or lines ending with the escape character (defined by
TsvFormat.getEscapeChar()
and followed by a line separator character should be joined with the following line. |
void |
setLineJoiningEnabled(boolean lineJoiningEnabled)
Defines how the parser should handle escaped line separators.
|
clearInputSpecificSettings, configureFromAnnotations, getInputBufferSize, getNumberOfRecordsToRead, getNumberOfRowsToSkip, getProcessor, getReadInputOnSeparateThread, getRowProcessor, isColumnReorderingEnabled, isCommentCollectionEnabled, isHeaderExtractionEnabled, isLineSeparatorDetectionEnabled, newCharAppender, newCharInputReader, setColumnReorderingEnabled, setCommentCollectionEnabled, setHeaderExtractionEnabled, setInputBufferSize, setLineSeparatorDetectionEnabled, setNumberOfRecordsToRead, setNumberOfRowsToSkip, setProcessor, setReadInputOnSeparateThread, setRowProcessorexcludeFields, excludeFields, excludeIndexes, getErrorContentLength, getFormat, getHeaders, getIgnoreLeadingWhitespaces, getIgnoreTrailingWhitespaces, getMaxCharsPerColumn, getMaxColumns, getNullValue, getProcessorErrorHandler, getRowProcessorErrorHandler, getSkipBitsAsWhitespace, getSkipEmptyLines, getWhitespaceRangeStart, isAutoConfigurationEnabled, isProcessorErrorHandlerDefined, selectFields, selectFields, selectIndexes, setAutoConfigurationEnabled, setErrorContentLength, setFormat, setHeaders, setIgnoreLeadingWhitespaces, setIgnoreTrailingWhitespaces, setMaxCharsPerColumn, setMaxColumns, setNullValue, setProcessorErrorHandler, setRowProcessorErrorHandler, setSkipBitsAsWhitespace, setSkipEmptyLines, toString, trimValuespublic boolean isLineJoiningEnabled()
TsvFormat.getEscapeChar()
and followed by a line separator character should be joined with the following line.
Typical examples include inputs where lines end with sequences such as: '\'+'\n' and '\'+'\r'+'\n'.
When line joining is disabled (the default), the TsvParser converts sequences containing
the escape character (typically '\') followed by characters 'n' or 'r' into a '\n' or '\r' character.
It will continue processing the contents found in the same line, until a new line character is found.
If line joining is enabled, the TsvParser will convert sequences containing
the escape character, followed by characters '\n', '\r' or '\r\n', into a '\n' or '\r' character.
It will continue processing the contents found in the next line, until a new line character is found, given it is
not preceded by another escape character.true if line joining is enabled, otherwise falsepublic void setLineJoiningEnabled(boolean lineJoiningEnabled)
TsvFormat.getEscapeChar()
and followed by a line separator character will be joined with the following line.
Typical examples include inputs where lines end with sequences such as: '\'+'\n' and '\'+'\r'+'\n'.
When line joining is disabled (the default), the TsvParser converts sequences containing
the escape character (typically '\') followed by characters 'n' or 'r' into a '\n' or '\r' character.
It will continue processing the contents found in the same line, until a new line character is found.
If line joining is enabled, the TsvParser will convert sequences containing
the escape character, followed by characters '\n', '\r' or '\r\n', into a '\n' or '\r' character.
It will continue processing the contents found in the next line, until a new line character is found, given it is
not preceded by another escape character.lineJoiningEnabled - a flag indicating whether or not to enable line joining.protected TsvFormat createDefaultFormat()
createDefaultFormat in class CommonSettings<TsvFormat>protected void addConfiguration(Map<String,Object> out)
addConfiguration in class CommonParserSettings<TsvFormat>public final TsvParserSettings clone()
CommonSettingsCommonSettings.clone(boolean) method to reset properties that are
specific to a given input, such as header names and selection of fields.clone in class CommonParserSettings<TsvFormat>public final TsvParserSettings clone(boolean clearInputSpecificSettings)
CommonSettingsclearInputSpecificSettings flag is set to trueclone in class CommonParserSettings<TsvFormat>clearInputSpecificSettings - flag indicating whether to clear settings that are likely to be associated with a given input.Copyright © 2018 Univocity Software Pty Ltd. All rights reserved.