| Package | Description |
|---|---|
| com.univocity.parsers.common | |
| com.univocity.parsers.csv | |
| com.univocity.parsers.fixed | |
| com.univocity.parsers.tsv |
| Modifier and Type | Class and Description |
|---|---|
class |
CommonParserSettings<F extends Format>
This is the parent class for all configuration classes used by parsers (
AbstractParser) |
class |
CommonWriterSettings<F extends Format>
This is the parent class for all configuration classes used by writers (
AbstractWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected CommonSettings |
CommonSettings.clone()
Clones this configuration object.
|
protected CommonSettings |
CommonSettings.clone(boolean clearInputSpecificSettings)
Clones this configuration object to reuse user-provided settings.
|
CommonSettings |
CommonSettings.setAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Indicates whether this settings object can automatically derive configuration options.
|
CommonSettings |
CommonSettings.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.
|
CommonSettings |
CommonSettings.setFormat(F format)
Defines the format of the file to be parsed/written (returns the format's defaults).
|
CommonSettings |
CommonSettings.setHeaders(String... headers)
Defines the field names in the input/output, in the sequence they occur (defaults to null).
|
CommonSettings |
CommonSettings.setHeadersDerivedFromClass(Class<?> headerSourceClass,
String... headers)
Defines the field names in the input/output derived from a given class with
Parsed annotated attributes/methods. |
CommonSettings |
CommonSettings.setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
Defines whether or not leading whitespaces from values being read/written should be skipped (defaults to true)
|
CommonSettings |
CommonSettings.setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
Defines whether or not trailing whitespaces from values being read/written should be skipped (defaults to true)
|
CommonSettings |
CommonSettings.setMaxCharsPerColumn(int maxCharsPerColumn)
Defines the maximum number of characters allowed for any given value being written/read.
|
CommonSettings |
CommonSettings.setMaxColumns(int maxColumns)
Defines a hard limit of how many columns a record can have (defaults to 512).
|
CommonSettings |
CommonSettings.setNullValue(String emptyValue)
Sets the String representation of a null value (defaults to null)
|
CommonSettings |
CommonSettings.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. |
CommonSettings |
CommonSettings.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. |
CommonSettings |
CommonSettings.setSkipBitsAsWhitespace(boolean skipBitsAsWhitespace)
Configures the parser to skip bit values as whitespace.
|
CommonSettings |
CommonSettings.setSkipEmptyLines(boolean skipEmptyLines)
Defines whether or not empty lines should be ignored (defaults to true)
|
CommonSettings |
CommonSettings.trimValues(boolean trim)
Configures the parser/writer to trim or keep leading and trailing whitespaces around values
This has the same effect as invoking both
setIgnoreLeadingWhitespaces(boolean) and setIgnoreTrailingWhitespaces(boolean)
with the same value. |
| Modifier and Type | Class and Description |
|---|---|
class |
CsvParserSettings
This is the configuration class used by the CSV parser (
CsvParser) |
class |
CsvWriterSettings
This is the configuration class used by the CSV writer (
CsvWriter) |
| Modifier and Type | Class and Description |
|---|---|
class |
FixedWidthParserSettings
This is the configuration class used by the Fixed-Width parser (
FixedWidthParser) |
class |
FixedWidthWriterSettings
This is the configuration class used by the Fixed-Width writer (
FixedWidthWriter) |
| Modifier and Type | Class and Description |
|---|---|
class |
TsvParserSettings
This is the configuration class used by the TSV parser (
TsvParser) |
class |
TsvWriterSettings
This is the configuration class used by the TSV writer (
TsvWriter) |
Copyright © 2024. All rights reserved.