|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.common.CommonSettings<F>
com.univocity.parsers.common.CommonParserSettings<TsvFormat>
com.univocity.parsers.tsv.TsvParserSettings
public class TsvParserSettings
This is the configuration class used by the TSV parser (TsvParser)
It supports the configuration options provided by CommonParserSettings only
TsvParser,
TsvFormat,
CommonParserSettings| Field Summary |
|---|
| Fields inherited from class com.univocity.parsers.common.CommonParserSettings |
|---|
headerExtractionEnabled |
| Constructor Summary | |
|---|---|
TsvParserSettings()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TsvParserSettings()
| Method Detail |
|---|
public 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 true
clone in class CommonParserSettings<TsvFormat>clearInputSpecificSettings - flag indicating whether to clear settings that are likely to be associated with a given input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||