| Package | Description |
|---|---|
| com.univocity.parsers.tsv |
| Modifier and Type | Method and Description |
|---|---|
TsvParserSettings |
TsvParserSettings.clone() |
TsvParserSettings |
TsvParserSettings.clone(boolean clearInputSpecificSettings) |
protected TsvParserSettings |
TsvRoutines.createDefaultParserSettings() |
TsvParserSettings |
TsvParserSettings.setAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Indicates whether this settings object can automatically derive configuration options.
|
TsvParserSettings |
TsvParserSettings.setErrorContentLength(int errorContentLength)
Configures the parser/writer to limit the length of displayed contents being parsed/written in the exception message when an error occurs.
|
TsvParserSettings |
TsvParserSettings.setFormat(TsvFormat format)
Defines the format of the file to be parsed/written (returns the format's defaults).
|
TsvParserSettings |
TsvParserSettings.setHeaders(String... headers)
Defines the field names in the input/output, in the sequence they occur (defaults to null).
|
TsvParserSettings |
TsvParserSettings.setHeadersDerivedFromClass(Class<?> headerSourceClass,
String... headers)
Defines the field names in the input/output derived from a given class with
Parsed annotated attributes/methods. |
TsvParserSettings |
TsvParserSettings.setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
Defines whether or not leading whitespaces from values being read/written should be skipped (defaults to true)
|
TsvParserSettings |
TsvParserSettings.setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
Defines whether or not trailing whitespaces from values being read/written should be skipped (defaults to true)
|
TsvParserSettings |
TsvParserSettings.setLineJoiningEnabled(boolean lineJoiningEnabled)
Defines how the parser should handle escaped line separators.
|
TsvParserSettings |
TsvParserSettings.setMaxCharsPerColumn(int maxCharsPerColumn)
Defines the maximum number of characters allowed for any given value being written/read.
|
TsvParserSettings |
TsvParserSettings.setMaxColumns(int maxColumns)
Defines a hard limit of how many columns a record can have (defaults to 512).
|
TsvParserSettings |
TsvParserSettings.setNullValue(String emptyValue)
Sets the String representation of a null value (defaults to null)
|
TsvParserSettings |
TsvParserSettings.setProcessorErrorHandler(ProcessorErrorHandler<? extends Context> processorErrorHandler)
Defines a custom error handler to capture and handle errors that might happen while processing records with a
Processor
or a RowWriterProcessor (i.e. |
TsvParserSettings |
TsvParserSettings.setRowProcessorErrorHandler(RowProcessorErrorHandler rowProcessorErrorHandler)
Deprecated.
Use the
setProcessorErrorHandler(ProcessorErrorHandler) method as it allows format-specific error handlers to be built to work with different implementations of Context.
Implementations based on RowProcessorErrorHandler allow only parsers who provide a ParsingContext to be used. |
TsvParserSettings |
TsvParserSettings.setSkipBitsAsWhitespace(boolean skipBitsAsWhitespace)
Configures the parser to skip bit values as whitespace.
|
TsvParserSettings |
TsvParserSettings.setSkipEmptyLines(boolean skipEmptyLines)
Defines whether or not empty lines should be ignored (defaults to true)
|
| Modifier and Type | Method and Description |
|---|---|
protected TsvParser |
TsvRoutines.createParser(TsvParserSettings parserSettings) |
| Constructor and Description |
|---|
TsvParser(TsvParserSettings settings)
The TsvParser supports all settings provided by
TsvParserSettings, and requires this configuration to be properly initialized. |
TsvRoutines(TsvParserSettings parserSettings)
Creates a new instance of the TSV routine class.
|
TsvRoutines(TsvParserSettings parserSettings,
TsvWriterSettings writerSettings)
Creates a new instance of the TSV routine class.
|
Copyright © 2024. All rights reserved.