- captureHeader(CSVReader) - Method in class com.opencsv.bean.ColumnPositionMappingStrategy
-
Captures the header from the reader - required by the MappingStrategy
interface and is a do nothing method for the
ColumnPositionMappingStrategy.
- captureHeader(CSVReader) - Method in class com.opencsv.bean.HeaderColumnNameMappingStrategy
-
- captureHeader(CSVReader) - Method in interface com.opencsv.bean.MappingStrategy
-
Implementation of this method can grab the header line before parsing
begins to use to map columns to bean properties.
- checkCharactersToEscape(char) - Method in class com.opencsv.CSVWriter
-
- checkError() - Method in class com.opencsv.CSVWriter
-
Flushes the buffer and checks to see if the there has been an error in the printstream.
- checkForTrim(String, PropertyDescriptor) - Method in class com.opencsv.bean.AbstractCSVToBean
-
Returns the trimmed value of the string only if the property the string
is describing should be trimmed to be converted to that type.
- CLOBBUFFERSIZE - Static variable in class com.opencsv.ResultSetHelperService
-
- close() - Method in class com.opencsv.CSVReader
-
Closes the underlying reader.
- close() - Method in class com.opencsv.CSVWriter
-
Close the underlying stream writer flushing any buffered content.
- ColumnPositionMappingStrategy<T> - Class in com.opencsv.bean
-
Allows for the mapping of columns with their positions.
- ColumnPositionMappingStrategy() - Constructor for class com.opencsv.bean.ColumnPositionMappingStrategy
-
Default constructor.
- com.opencsv - package com.opencsv
-
A very simple CSV parser for Java released under a commercial-friendly license.
- com.opencsv.bean - package com.opencsv.bean
-
A bean binding interface for use with opencsv.
- com.opencsv.bean.customconverter - package com.opencsv.bean.customconverter
-
Custom converters that are generally useful are collected here.
- com.opencsv.enums - package com.opencsv.enums
-
Enumerations relevant to opencsv's internal operations.
- com.opencsv.exceptions - package com.opencsv.exceptions
-
This package contains all of the exceptions specific to opencsv.
- com.opencsv.stream.reader - package com.opencsv.stream.reader
-
Collection of classes for customizing reading lines.
- combineResultsFromMultipleReads(String[], String[]) - Method in class com.opencsv.CSVReader
-
For multi-line records this method combines the current result with the result from previous read(s).
- convert(String) - Method in class com.opencsv.bean.AbstractBeanField
-
Method for converting from a string to the proper datatype of the
destination field.
- convert(String) - Method in class com.opencsv.bean.BeanFieldDate
-
- convert(String) - Method in class com.opencsv.bean.BeanFieldPrimitiveTypes
-
- convert(String) - Method in class com.opencsv.bean.customconverter.ConvertGermanToBoolean
-
Converts German text into a Boolean.
- convert(String) - Method in class com.opencsv.bean.customconverter.ConvertGermanToBooleanRequired
-
- convert(String) - Method in class com.opencsv.bean.customconverter.ConvertSplitOnWhitespace
-
Takes a string that is a list of substrings separated by whitespace and
returns a list of the substrings.
- ConvertGermanToBoolean - Class in com.opencsv.bean.customconverter
-
This class converts common German representations of boolean values into a
Boolean.
- ConvertGermanToBoolean() - Constructor for class com.opencsv.bean.customconverter.ConvertGermanToBoolean
-
- ConvertGermanToBooleanRequired - Class in com.opencsv.bean.customconverter
-
- ConvertGermanToBooleanRequired() - Constructor for class com.opencsv.bean.customconverter.ConvertGermanToBooleanRequired
-
- ConvertSplitOnWhitespace - Class in com.opencsv.bean.customconverter
-
This class takes a string and splits it on whitespace into a list of strings.
- ConvertSplitOnWhitespace() - Constructor for class com.opencsv.bean.customconverter.ConvertSplitOnWhitespace
-
- convertValue(String, PropertyDescriptor) - Method in class com.opencsv.bean.AbstractCSVToBean
-
Convert a string value to its Object value.
- createBean() - Method in class com.opencsv.bean.HeaderColumnNameMappingStrategy
-
- createBean() - Method in interface com.opencsv.bean.MappingStrategy
-
Implementation will return a bean of the type of object you are mapping.
- createIndexLookup(String[]) - Method in class com.opencsv.bean.HeaderColumnNameMappingStrategy
-
Creates an index map of column names to column position.
- CsvBadConverterException - Exception in com.opencsv.exceptions
-
This exception indicates that the custom converter provided did not behave as
expected in some way.
- CsvBadConverterException() - Constructor for exception com.opencsv.exceptions.CsvBadConverterException
-
Default constructor, in case no further information is necessary or
available.
- CsvBadConverterException(Class) - Constructor for exception com.opencsv.exceptions.CsvBadConverterException
-
Constructor for specifying the class of the offending converter.
- CsvBadConverterException(String) - Constructor for exception com.opencsv.exceptions.CsvBadConverterException
-
Constructor with a simple text.
- CsvBadConverterException(Class, String) - Constructor for exception com.opencsv.exceptions.CsvBadConverterException
-
Constructor for setting the class of the converter and an error message.
- CsvBind - Annotation Type in com.opencsv.bean
-
- CsvBindByName - Annotation Type in com.opencsv.bean
-
Specifies a binding between a column name of the CSV input and a field in a
bean.
- CsvBindByPosition - Annotation Type in com.opencsv.bean
-
Specifies a binding between a column number of the CSV input and a field in
a bean.
- CsvConstraintViolationException - Exception in com.opencsv.exceptions
-
This exception is thrown when logical connections between data fields would
be violated by the imported data.
- CsvConstraintViolationException() - Constructor for exception com.opencsv.exceptions.CsvConstraintViolationException
-
Default constructor, in case no further information is necessary or
available.
- CsvConstraintViolationException(Object) - Constructor for exception com.opencsv.exceptions.CsvConstraintViolationException
-
Constructor for setting the source object that triggered the constraint
violation.
- CsvConstraintViolationException(String) - Constructor for exception com.opencsv.exceptions.CsvConstraintViolationException
-
Constructor with a simple text.
- CsvConstraintViolationException(Object, String) - Constructor for exception com.opencsv.exceptions.CsvConstraintViolationException
-
Constructor for setting the source object and an error message.
- CsvCustomBindByName - Annotation Type in com.opencsv.bean
-
Allows us to specify a class that will perform the translation from source
to destination.
- CsvCustomBindByPosition - Annotation Type in com.opencsv.bean
-
Allows us to specify a class that will perform the translation from source
to destination.
- CsvDataTypeMismatchException - Exception in com.opencsv.exceptions
-
This exception should be thrown when the provided string value for conversion
cannot be converted to the required type of the destination field.
- CsvDataTypeMismatchException() - Constructor for exception com.opencsv.exceptions.CsvDataTypeMismatchException
-
Default constructor, in case no further information is necessary or
available.
- CsvDataTypeMismatchException(Object, Class) - Constructor for exception com.opencsv.exceptions.CsvDataTypeMismatchException
-
Constructor for setting the data and the class of the intended
destination field.
- CsvDataTypeMismatchException(String) - Constructor for exception com.opencsv.exceptions.CsvDataTypeMismatchException
-
Constructor with a simple text.
- CsvDataTypeMismatchException(Object, Class, String) - Constructor for exception com.opencsv.exceptions.CsvDataTypeMismatchException
-
Constructor for setting the data and the class of the intended
destination field along with an error message.
- CsvDate - Annotation Type in com.opencsv.bean
-
This annotation indicates that the destination field is an expression of time.
- CsvException - Exception in com.opencsv.exceptions
-
This is the base class for all exceptions for opencsv.
- CsvException() - Constructor for exception com.opencsv.exceptions.CsvException
-
Default constructor, in case no parameters are required.
- CsvException(String) - Constructor for exception com.opencsv.exceptions.CsvException
-
Constructor that allows a human-readable message.
- CSVIterator - Class in com.opencsv
-
Provides an Iterator over the data found in opencsv.
- CSVIterator(CSVReader) - Constructor for class com.opencsv.CSVIterator
-
- CSVParser - Class in com.opencsv
-
A very simple CSV parser released under a commercial-friendly license.
- CSVParser() - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser using a comma for the separator.
- CSVParser(char) - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser with supplied separator.
- CSVParser(char, char) - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser with supplied separator and quote char.
- CSVParser(char, char, char) - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser with supplied separator and quote char.
- CSVParser(char, char, char, boolean) - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser with supplied separator and quote char.
- CSVParser(char, char, char, boolean, boolean) - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser with supplied separator and quote char.
- CSVParser(char, char, char, boolean, boolean, boolean) - Constructor for class com.opencsv.CSVParser
-
Constructs CSVParser with supplied separator and quote char.
- CSVParserBuilder - Class in com.opencsv
-
Builder for creating a CSVParser.
- CSVParserBuilder() - Constructor for class com.opencsv.CSVParserBuilder
-
Default constructor.
- CSVReader - Class in com.opencsv
-
A very simple CSV reader released under a commercial-friendly license.
- CSVReader(Reader) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader using a comma for the separator.
- CSVReader(Reader, char) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader with supplied separator.
- CSVReader(Reader, char, char) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader with supplied separator and quote char.
- CSVReader(Reader, char, char, boolean) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader with supplied separator, quote char, and quote handling
behavior.
- CSVReader(Reader, char, char, char) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader.
- CSVReader(Reader, char, char, int) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader.
- CSVReader(Reader, char, char, char, int) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader.
- CSVReader(Reader, char, char, char, int, boolean) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader.
- CSVReader(Reader, char, char, char, int, boolean, boolean) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader with all data entered.
- CSVReader(Reader, char, char, char, int, boolean, boolean, boolean) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader with all data entered.
- CSVReader(Reader, int, CSVParser) - Constructor for class com.opencsv.CSVReader
-
Constructs CSVReader with supplied CSVParser.
- CSVReaderBuilder - Class in com.opencsv
-
Builder for creating a CSVReader.
- CSVReaderBuilder(Reader) - Constructor for class com.opencsv.CSVReaderBuilder
-
Sets the reader to an underlying CSV source.
- CSVReaderNullFieldIndicator - Enum in com.opencsv.enums
-
Enumeration used to tell the CSVParser what to consider null.
- CsvRequiredFieldEmptyException - Exception in com.opencsv.exceptions
-
This exception should be thrown when a field marked as required is empty in
the CSV file.
- CsvRequiredFieldEmptyException() - Constructor for exception com.opencsv.exceptions.CsvRequiredFieldEmptyException
-
Default constructor, in case no further information is necessary.
- CsvRequiredFieldEmptyException(String) - Constructor for exception com.opencsv.exceptions.CsvRequiredFieldEmptyException
-
Constructor with a simple text.
- CsvRequiredFieldEmptyException(Class, Field) - Constructor for exception com.opencsv.exceptions.CsvRequiredFieldEmptyException
-
Constructor for setting the intended class and field of the target bean.
- CsvRequiredFieldEmptyException(Class, Field, String) - Constructor for exception com.opencsv.exceptions.CsvRequiredFieldEmptyException
-
Constructor for setting the intended class and field of the target bean
along with an error message.
- CsvToBean<T> - Class in com.opencsv.bean
-
Converts CSV data to objects.
- CsvToBean() - Constructor for class com.opencsv.bean.CsvToBean
-
Default constructor.
- CsvToBeanFilter - Interface in com.opencsv.bean
-
Here's an example showing how to use
CsvToBean
with a column
name mapping and line filtering.
- CSVWriter - Class in com.opencsv
-
A very simple CSV writer released under a commercial-friendly license.
- CSVWriter(Writer) - Constructor for class com.opencsv.CSVWriter
-
Constructs CSVWriter using a comma for the separator.
- CSVWriter(Writer, char) - Constructor for class com.opencsv.CSVWriter
-
Constructs CSVWriter with supplied separator.
- CSVWriter(Writer, char, char) - Constructor for class com.opencsv.CSVWriter
-
Constructs CSVWriter with supplied separator and quote char.
- CSVWriter(Writer, char, char, char) - Constructor for class com.opencsv.CSVWriter
-
Constructs CSVWriter with supplied separator and quote char.
- CSVWriter(Writer, char, char, String) - Constructor for class com.opencsv.CSVWriter
-
Constructs CSVWriter with supplied separator and quote char.
- CSVWriter(Writer, char, char, char, String) - Constructor for class com.opencsv.CSVWriter
-
Constructs CSVWriter with supplied separator, quote char, escape char and line ending.
- getBeanClass() - Method in exception com.opencsv.exceptions.CsvRequiredFieldEmptyException
-
Gets the class of the bean to which the value was to be assigned.
- getCapturedExceptions() - Method in class com.opencsv.bean.CsvToBean
-
- getColumnIndex(String) - Method in class com.opencsv.bean.ColumnPositionMappingStrategy
-
- getColumnIndex(String) - Method in class com.opencsv.bean.HeaderColumnNameMappingStrategy
-
- getColumnIndex(String) - Method in interface com.opencsv.bean.MappingStrategy
-
Gets the column index that corresponds to a specific column name.
- getColumnMapping() - Method in class com.opencsv.bean.ColumnPositionMappingStrategy
-
Retrieves the column mappings.
- getColumnMapping() - Method in class com.opencsv.bean.HeaderColumnNameTranslateMappingStrategy
-
Retrieves the column mappings of the strategy.
- getColumnName(int) - Method in class com.opencsv.bean.ColumnPositionMappingStrategy
-
Gets a column name.
- getColumnName(int) - Method in class com.opencsv.bean.HeaderColumnNameMappingStrategy
-
Get the column name for a given column position.
- getColumnName(int) - Method in class com.opencsv.bean.HeaderColumnNameTranslateMappingStrategy
-
- getColumnNames(ResultSet) - Method in class com.opencsv.ResultSetColumnNameHelperService
-
Returns the column names from the result set.
- getColumnNames(ResultSet) - Method in interface com.opencsv.ResultSetHelper
-
Returns the column names from the ResultSet.
- getColumnNames(ResultSet) - Method in class com.opencsv.ResultSetHelperService
-
- getColumnValues(ResultSet) - Method in class com.opencsv.ResultSetColumnNameHelperService
-
Get all the column values from the result set.
- getColumnValues(ResultSet, boolean) - Method in class com.opencsv.ResultSetColumnNameHelperService
-
Get all the column values from the result set.
- getColumnValues(ResultSet, boolean, String, String) - Method in class com.opencsv.ResultSetColumnNameHelperService
-
Get all the column values from the result set.
- getColumnValues(ResultSet) - Method in interface com.opencsv.ResultSetHelper
-
Returns the column values from the result set.
- getColumnValues(ResultSet, boolean) - Method in interface com.opencsv.ResultSetHelper
-
Returns the column values from the result set with the values trimmed if desired.
- getColumnValues(ResultSet, boolean, String, String) - Method in interface com.opencsv.ResultSetHelper
-
Returns the column values from the result set with the values trimmed if desired.
- getColumnValues(ResultSet) - Method in class com.opencsv.ResultSetHelperService
-
- getColumnValues(ResultSet, boolean) - Method in class com.opencsv.ResultSetHelperService
-
- getColumnValues(ResultSet, boolean, String, String) - Method in class com.opencsv.ResultSetHelperService
-
- getConverterClass() - Method in exception com.opencsv.exceptions.CsvBadConverterException
-
- getCsvParser() - Method in class com.opencsv.CSVReaderBuilder
-
Used by unit tests.
- getCSVReader() - Method in class com.opencsv.bean.IterableCSVToBean
-
Retrieves the CSVReader.
- getCsvReader() - Method in class com.opencsv.bean.IterableCSVToBeanBuilder
-
Used by unit tests.
- getDestinationClass() - Method in exception com.opencsv.exceptions.CsvDataTypeMismatchException
-
Gets the type of the field to which the data were to be assigned.
- getDestinationField() - Method in exception com.opencsv.exceptions.CsvRequiredFieldEmptyException
-
Gets the field from the Reflection API that was to be assigned.
- getEscape() - Method in class com.opencsv.CSVParser
-
- getEscapeChar() - Method in class com.opencsv.CSVParserBuilder
-
- getField() - Method in class com.opencsv.bean.AbstractBeanField
-
- getField() - Method in interface com.opencsv.bean.BeanField
-
Gets the field to be processed.
- getFilter() - Method in class com.opencsv.bean.IterableCSVToBean
-
Retrieves the CsvToBeanFilter
- getFilter() - Method in class com.opencsv.bean.IterableCSVToBeanBuilder
-
Used by unit tests.
- getLineNumber() - Method in exception com.opencsv.exceptions.CsvException
-
- getLinesRead() - Method in class com.opencsv.CSVReader
-
Used for debugging purposes, this method returns the number of lines that
has been read from the reader passed into the CSVReader.
- getNextLine() - Method in class com.opencsv.CSVReader
-
Reads the next line from the file.
- getParser() - Method in class com.opencsv.CSVReader
-
- getPropertyEditor(PropertyDescriptor) - Method in class com.opencsv.bean.AbstractCSVToBean
-
Attempt to find custom property editor on descriptor first, else try the
propery editor manager.
- getPropertyEditor(PropertyDescriptor) - Method in class com.opencsv.bean.CsvToBean
-
- getPropertyEditor(PropertyDescriptor) - Method in class com.opencsv.bean.IterableCSVToBean
-
- getQuotechar() - Method in class com.opencsv.CSVParser
-
- getQuoteChar() - Method in class com.opencsv.CSVParserBuilder
-
- getReader() - Method in class com.opencsv.CSVReaderBuilder
-
Used by unit tests.
- getRecordsRead() - Method in class com.opencsv.CSVReader
-
Used for debugging purposes, this method returns the number of records
that has been read from the CSVReader.
- getSeparator() - Method in class com.opencsv.CSVParser
-
- getSeparator() - Method in class com.opencsv.CSVParserBuilder
-
- getSkipLines() - Method in class com.opencsv.CSVReader
-
Returns the number of lines in the CSV file to skip before processing.
- getSkipLines() - Method in class com.opencsv.CSVReaderBuilder
-
Used by unit tests.
- getSourceObject() - Method in exception com.opencsv.exceptions.CsvConstraintViolationException
-
- getSourceObject() - Method in exception com.opencsv.exceptions.CsvDataTypeMismatchException
-
Gets the object that was to be assigned to a field of the wrong type.
- getStrategy() - Method in class com.opencsv.bean.IterableCSVToBean
-
Retrieves the MappingStrategy.
- getStrategy() - Method in class com.opencsv.bean.IterableCSVToBeanBuilder
-
Used by unit tests.
- getType() - Method in class com.opencsv.bean.HeaderColumnNameMappingStrategy
-
Get the class type that the Strategy is mapping.
- withCSVParser(CSVParser) - Method in class com.opencsv.CSVReaderBuilder
-
Sets the parser to use to parse the input.
- withEscapeChar(char) - Method in class com.opencsv.CSVParserBuilder
-
Sets the character to use for escaping a separator or quote.
- withFieldAsNull(CSVReaderNullFieldIndicator) - Method in class com.opencsv.CSVParserBuilder
-
Sets the NullFieldIndicator.
- withFieldAsNull(CSVReaderNullFieldIndicator) - Method in class com.opencsv.CSVReaderBuilder
-
Checks to see if it should treat a field with two separators, two quotes, or both as a null field.
- withFilter(CsvToBeanFilter) - Method in class com.opencsv.bean.IterableCSVToBeanBuilder
-
Sets the filter used to remove unwanted data from the CSV file.
- withIgnoreLeadingWhiteSpace(boolean) - Method in class com.opencsv.CSVParserBuilder
-
Sets the ignore leading whitespace setting - if true, white space
in front of a quote in a field is ignored.
- withIgnoreQuotations(boolean) - Method in class com.opencsv.CSVParserBuilder
-
Sets the ignore quotations mode - if true, quotations are ignored.
- withKeepCarriageReturn(boolean) - Method in class com.opencsv.CSVReaderBuilder
-
Sets if the reader will keep or discard carriage returns.
- withMapper(MappingStrategy<T>) - Method in class com.opencsv.bean.IterableCSVToBeanBuilder
-
Sets the MappingStrategy to be used by the builder.
- withQuoteChar(char) - Method in class com.opencsv.CSVParserBuilder
-
Sets the character to use for quoted elements.
- withReader(CSVReader) - Method in class com.opencsv.bean.IterableCSVToBeanBuilder
-
Sets the reader to be used by the builder.
- withSeparator(char) - Method in class com.opencsv.CSVParserBuilder
-
Sets the delimiter to use for separating entries.
- withSkipLines(int) - Method in class com.opencsv.CSVReaderBuilder
-
Sets the number of lines to skip before reading.
- withStrictQuotes(boolean) - Method in class com.opencsv.CSVParserBuilder
-
Sets the strict quotes setting - if true, characters
outside the quotes are ignored.
- withVerifyReader(boolean) - Method in class com.opencsv.CSVReaderBuilder
-
Checks to see if the CSVReader should verify the reader state before
reads or not.
- write(MappingStrategy<T>, Writer, List<?>) - Method in class com.opencsv.bean.BeanToCsv
-
Writes all the objects, one at a time, to a created CSVWriter using the
passed in Strategy.
- write(MappingStrategy<T>, CSVWriter, List<?>) - Method in class com.opencsv.bean.BeanToCsv
-
Writes all the objects, one at a time, to the CSVWriter using the passed
in Strategy.
- writeAll(Iterable<String[]>, boolean) - Method in class com.opencsv.CSVWriter
-
Writes iterable to a CSV file.
- writeAll(List<String[]>, boolean) - Method in class com.opencsv.CSVWriter
-
Writes the entire list to a CSV file.
- writeAll(Iterable<String[]>) - Method in class com.opencsv.CSVWriter
-
Writes iterable to a CSV file.
- writeAll(List<String[]>) - Method in class com.opencsv.CSVWriter
-
Writes the entire list to a CSV file.
- writeAll(ResultSet, boolean) - Method in class com.opencsv.CSVWriter
-
Writes the entire ResultSet to a CSV file.
- writeAll(ResultSet, boolean, boolean) - Method in class com.opencsv.CSVWriter
-
Writes the entire ResultSet to a CSV file.
- writeColumnNames(ResultSet) - Method in class com.opencsv.CSVWriter
-
Writes the column names.
- writeNext(String[], boolean) - Method in class com.opencsv.CSVWriter
-
Writes the next line to the file.
- writeNext(String[], boolean, Appendable) - Method in class com.opencsv.CSVWriter
-
Writes the next line to the file.
- writeNext(String[]) - Method in class com.opencsv.CSVWriter
-
Writes the next line to the file.
- writer - Variable in class com.opencsv.CSVWriter
-