Package | Description |
---|---|
com.j256.simplecsv.processor |
Classes used to process CSV files.
|
Modifier and Type | Method and Description |
---|---|
CsvProcessor<T> |
CsvProcessor.initialize()
This initializing the internal configuration information.
|
CsvProcessor<T> |
CsvProcessor.withAllowPartialLines(boolean allowPartialLines)
Set to true to allow lines that do not have values for all of the columns.
|
CsvProcessor<T> |
CsvProcessor.withAlwaysTrimInput(boolean alwaysTrimInput)
Set to true to always call
String.trim() on data input columns to remove any spaces from the start or
end. |
CsvProcessor<T> |
CsvProcessor.withColumnNameMatcher(ColumnNameMatcher columnNameMatcher)
Set the column name matcher class which will be used to see if the column from the CSV file matches the
definition name.
|
CsvProcessor<T> |
CsvProcessor.withColumnQuote(char columnQuote)
Quote character that is used to wrap each column.
|
CsvProcessor<T> |
CsvProcessor.withColumnSeparator(char columnSeparator)
String that separates columns in out CSV input and output.
|
CsvProcessor<T> |
CsvProcessor.withConstructorCallable(Callable<T> constructorCallable)
Set the a method that will construct the entity we are loading.
|
<FT> CsvProcessor<T> |
CsvProcessor.withConverter(Class<FT> clazz,
Converter<FT,?> converter)
Register a converter class for all instances of the class argument.
|
CsvProcessor<T> |
CsvProcessor.withEntityClass(Class<T> entityClass)
Class that we are processing.
|
CsvProcessor<T> |
CsvProcessor.withFirstLineHeader(boolean firstLineHeader)
Set to false if the first line is a header line to be processed.
|
CsvProcessor<T> |
CsvProcessor.withFlexibleOrder(boolean flexibleOrder)
Set to true if the order of the input columns is flexible and does not have to match the order of the definition
fields in the entity.
|
CsvProcessor<T> |
CsvProcessor.withHeaderValidation(boolean headerValidation)
Set to false to not validate the header when it is read in.
|
CsvProcessor<T> |
CsvProcessor.withIgnoreUnknownColumns(boolean ignoreUnknownColumns)
Set to true to ignore columns that are not know to the configuration.
|
CsvProcessor<T> |
CsvProcessor.withLineTermination(String lineTermination)
Sets the character which is written at the end of the row.
|
CsvProcessor<T> |
CsvProcessor.withRowValidator(RowValidator<T> rowValidator)
Set the validator which will validate each entity after it has been parsed.
|
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.