java.lang.Object
org.refcodes.tabular.TabularSugar
Declarative syntactic sugar which may be statically imported in order to
allow declarative definitions for the tabular package's elements, e.g. for
creating
Header
or Column
instances or
CsvRecordReader
(CsvStringRecordReader
) or
CsvRecordWriter
(CsvStringRecordWriter
) instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanColumn
(String aKey) Constructs aColumn
with support for boolean values.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, char aCsvSeparator, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, char aCsvSeparator, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, Charset aEncoding, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, Charset aEncoding, char aCsvSeparator, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(File aCsvFile, Charset aEncoding, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(InputStream aCsvInputStream, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(InputStream aCsvInputStream, char aCsvDelimiter, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(InputStream aCsvInputStream, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(InputStream aCsvInputStream, Charset aEncoding, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(InputStream aCsvInputStream, Charset aEncoding, String... aHeader) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, boolean isStrict) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, char aCsvSeparator) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, Charset aEncoding) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, InputStream aCsvInputStream) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, InputStream aCsvInputStream, boolean isStrict) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, InputStream aCsvInputStream, char aCsvDelimiter) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) Constructs aCsvStringRecordReader
with the given parameters.static CsvStringRecordReader
csvRecordReader
(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvStringRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvSeparator) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvSeparator) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, char aCsvSeparator) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, Charset aEncoding) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordReader<T>
csvRecordReader
(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReader
with the given parameters.static <T> CsvRecordWriter<T>
csvRecordWriter
(File aCsvFile) Constructs aCsvRecordWriter
.static <T> CsvRecordWriter<T>
csvRecordWriter
(File aCsvFile, char aCsvDelimiter) Constructs aCsvRecordWriter
.static CsvStringRecordWriter
csvRecordWriter
(File aFile, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(File aFile, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(File aCsvFile, Charset aEncoding) Constructs aCsvRecordWriter
.static <T> CsvRecordWriter<T>
csvRecordWriter
(File aCsvFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
.static CsvStringRecordWriter
csvRecordWriter
(File aFile, Charset aEncoding, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(File aFile, Charset aEncoding, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(OutputStream aCsvOutputStream) Constructs aCsvRecordWriter
.static CsvStringRecordWriter
csvRecordWriter
(OutputStream aOutputStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(OutputStream aCsvOutputStream, Charset aEncoding) Constructs aCsvRecordWriter
.static CsvStringRecordWriter
csvRecordWriter
(OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(OutputStream aOutputStream, Charset aEncoding, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(PrintStream aPrintStream) Constructs aCsvRecordWriter
.static CsvStringRecordWriter
csvRecordWriter
(PrintStream aPrintStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, File aFile) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, File aFile, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, File aFile, Charset aEncoding) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, File aFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, OutputStream aOutputStream) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, OutputStream aOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, OutputStream aOutputStream, Charset aEncoding) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, PrintStream aPrintStream) Constructs aCsvRecordWriter
with the given header for logging.static CsvStringRecordWriter
csvRecordWriter
(String[] aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, File aCsvFile) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, File aCsvFile) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, File aCsvFile, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, File aCsvFile, Charset aEncoding) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, OutputStream aCsvOutputStream) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, PrintStream aPrintStream) Constructs aCsvRecordWriter
with the given header for logging.static <T> CsvRecordWriter<T>
csvRecordWriter
(Header<T> aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.dateColumn
(String aKey) Constructs aColumn
with support for the defaultSimpleDateFormat
instances as defined in theDateFormats.DEFAULT_DATE_FORMATS
.dateColumn
(String aKey, DateTimeFormatter... aDateFormats) Constructs aColumn
with support for the providedSimpleDateFormat
instances.doubleColumn
(String aKey) Constructs aColumn
with support for double values.enumColumn
(String aKey, Class<T> aType) Constructs aColumn
with support for enumeration values.floatColumn
(String aKey) Constructs aColumn
with support for float values.static Header<?>
Constructs aColumn
with support for integer values.longColumn
(String aKey) Constructs aColumn
with support for long values.stringColumn
(String aKey) Constructs aColumn
with support for string values.
-
Constructor Details
-
TabularSugar
public TabularSugar()
-
-
Method Details
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvSeparator) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvSeparator, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvSeparator) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.aCsvDelimiter
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.aCsvDelimiter
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. This constructor supports aColumnFactory
for creatingColumn
instance according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values from the storage format to the actual required type.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, char aCsvSeparator, boolean isStrict, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, char aCsvSeparator, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, Charset aEncoding, boolean isStrict, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, Charset aEncoding, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(File aCsvFile, String... aHeader) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvFile
- The CSVFile
which to parse.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, char aCsvSeparator) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.aCsvDelimiter
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.aCsvDelimiter
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The type managed by theRecords
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
to be used as encoding.aCsvDelimiter
- The delimiter being expected for the CSV input stream.- Returns:
- the csv record reader
- Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) throws IOException Constructs aCsvRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- TheHeader
to use when parsing the lines retrieved from theInputStream
.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, boolean isStrict, String... aHeader) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvInputStream
- The CSVInputStream
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, char aCsvDelimiter, String... aHeader) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvInputStream
- The CSVInputStream
which to parse.aCsvDelimiter
- The delimiter being expected for the CSV input stream.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, Charset aEncoding, boolean isStrict, String... aHeader) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
to be used as encoding.aCsvDelimiter
- The delimiter being expected for the CSV input stream.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, Charset aEncoding, String... aHeader) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, String... aHeader) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aCsvInputStream
- The CSVInputStream
which to parse.aHeader
- TheString
elements representing theHeader
to use when parsing the input.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, char aCsvSeparator) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) throws FileNotFoundException, IOException, ZipException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvFile
- The CSVFile
which to parse.aEncoding
- TheCharset
for the character encoding to use.aCsvSeparator
- The delimiter being expected for the CSV input stream.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
FileNotFoundException
- the file not found exceptionIOException
- in case there were problems working with the givenFile
.ZipException
- thrown in case processing a ZIP compressed file encountered problems.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvInputStream
- The CSVInputStream
which to parse.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, boolean isStrict) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvInputStream
- The CSVInputStream
which to parse.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvInputStream
- The CSVInputStream
which to parse.aCsvDelimiter
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
for the character encoding to use.isStrict
- When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error countCsvRecordReader.getErroneousRecordCount()
is incremented by each erroneousRecord
.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordReader
public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvStringRecordReader
with the given parameters. InternallyColumn
instances are generated according to the keys found in the CSV top line. TheColumn
instances are required to convert the CSV line values. If aHeader
is provided, then theHeader
is used for generating theColumn
instances instead of the top line of the CSV file.- Parameters:
aHeader
- TheString
elements representing theHeader
to use when parsing the input.aCsvInputStream
- The CSVInputStream
which to parse.aEncoding
- TheCharset
to be used as encoding.aCsvDelimiter
- The delimiter being expected for the CSV input stream.- Returns:
- The accordingly created
CsvStringRecordReader
. - Throws:
IOException
- in case there were problems working with the givenInputStream
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvDelimiter) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- The header used for logging in the correct format.aPrintStream
- ThePrintStream
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aColumnFactory
- AColumnFactory
to be used to generateColumn
instances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecord
instances.aPrintStream
- ThePrintStream
to be used for printing output.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
Constructs aCsvRecordWriter
.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aCsvFile
- TheFile
to be used for printing output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, char aCsvDelimiter) throws FileNotFoundException Constructs aCsvRecordWriter
.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aCsvFile
- TheFile
to be used for printing output. aCsvDelimiter The separator to be used when separating the CSV values in the log output.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(File aFile, char aCsvDelimiter, String... aHeader) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aFile
- theFile
to which to write.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, Charset aEncoding) throws IOException Constructs aCsvRecordWriter
.- Type Parameters:
T
- the generic type- Parameters:
aCsvFile
- TheFile
to be used for printing output.aEncoding
- TheCharset
to be used as encoding.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvRecordWriter
.- Type Parameters:
T
- the generic type- Parameters:
aCsvFile
- TheFile
to be used for printing output. aCsvDelimiter The separator to be used when separating the CSV values in the log output.aEncoding
- TheCharset
to be used as encoding.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(File aFile, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aFile
- theFile
to which to write.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(File aFile, Charset aEncoding, String... aHeader) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aFile
- theFile
to which to write.aEncoding
- TheCharset
for the character encoding to use.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(File aFile, String... aHeader) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aFile
- theFile
to which to write.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, char aCsvDelimiter) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, Charset aEncoding) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvFile
- TheFile
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aCsvOutputStream
- TheOutputStream
to be used for printing.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aPrintStream
- ThePrintStream
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aHeader
- The header used for logging in the correct format.aPrintStream
- ThePrintStream
to be used for printing.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
Constructs aCsvRecordWriter
.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aCsvOutputStream
- TheOutputStream
to be used for printing output.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aOutputStream
- TheOutputStream
where to write to.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(OutputStream aCsvOutputStream, Charset aEncoding) throws UnsupportedEncodingException Constructs aCsvRecordWriter
.- Type Parameters:
T
- the generic type- Parameters:
aCsvOutputStream
- TheOutputStream
to be used for printing output.aEncoding
- TheCharset
to be used as encoding.- Returns:
- The accordingly created
CsvRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aOutputStream
- TheOutputStream
where to write to.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, Charset aEncoding, String... aHeader) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aOutputStream
- TheOutputStream
where to write to.aEncoding
- TheCharset
for the character encoding to use.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
Constructs aCsvRecordWriter
.- Type Parameters:
T
- The generic type of theHeader
.- Parameters:
aPrintStream
- ThePrintStream
to be used for printing.- Returns:
- The accordingly created
CsvRecordWriter
.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(PrintStream aPrintStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aPrintStream
- ThePrintStream
to be used for printing output.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.aHeader
- TheString
elements representing the header used for logging in the correct format.- Returns:
- The accordingly created
CsvStringRecordWriter
.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aFile
- theFile
to which to write.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile, char aCsvDelimiter) throws FileNotFoundException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aFile
- theFile
to which to write.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
FileNotFoundException
- If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile, Charset aEncoding) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aFile
- theFile
to which to write.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile, Charset aEncoding, char aCsvDelimiter) throws IOException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aFile
- theFile
to which to write.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
IOException
- in case the file is not found or the encoding is not supported.
-
csvRecordWriter
Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aOutputStream
- TheOutputStream
where to write to.- Returns:
- The accordingly created
CsvStringRecordWriter
.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aOutputStream
- TheOutputStream
where to write to.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvStringRecordWriter
.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, Charset aEncoding) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aOutputStream
- TheOutputStream
where to write to.aEncoding
- TheCharset
for the character encoding to use.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter) throws UnsupportedEncodingException Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aOutputStream
- TheOutputStream
where to write to.aEncoding
- TheCharset
for the character encoding to use.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvStringRecordWriter
. - Throws:
UnsupportedEncodingException
- thrown in case an unsupported encoding (Charset
) has been provided.
-
csvRecordWriter
Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aPrintStream
- ThePrintStream
to be used for printing.- Returns:
- The accordingly created
CsvStringRecordWriter
.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriter
with the given header for logging.- Parameters:
aHeader
- TheString
elements representing the header used for logging in the correct format.aPrintStream
- ThePrintStream
to be used for printing output.aCsvDelimiter
- The separator to be used when separating the CSV values in the log output.- Returns:
- The accordingly created
CsvStringRecordWriter
.
-
dateColumn
Constructs aColumn
with support for the defaultSimpleDateFormat
instances as defined in theDateFormats.DEFAULT_DATE_FORMATS
. -
dateColumn
Constructs aColumn
with support for the providedSimpleDateFormat
instances.- Parameters:
aKey
- The key to be used.aDateFormats
- TheSimpleDateFormat
instances used for parsing date strings.- Returns:
- The according
Column
representingDate
values.
-
doubleColumn
Constructs aColumn
with support for double values.- Parameters:
aKey
- The key to be used.- Returns:
- The according
Column
representing double values.
-
enumColumn
Constructs aColumn
with support for enumeration values.- Type Parameters:
T
- the generic enumerations's type- Parameters:
aKey
- The key to be used.aType
- The enumeration's type.- Returns:
- The according
Column
representing enumeration values.
-
floatColumn
Constructs aColumn
with support for float values.- Parameters:
aKey
- The key to be used.- Returns:
- The according
Column
representing float values.
-
headerOf
-
headerOf
-
booleanColumn
Constructs aColumn
with support for boolean values.- Parameters:
aKey
- The key to be used.- Returns:
- The according
Column
representing boolean values.
-
intColumn
Constructs aColumn
with support for integer values.- Parameters:
aKey
- The key to be used.- Returns:
- The according
Column
representing integer values.
-
longColumn
Constructs aColumn
with support for long values.- Parameters:
aKey
- The key to be used.- Returns:
- The according
Column
representing long values.
-
stringColumn
Constructs aColumn
with support for string values.- Parameters:
aKey
- The key to be used.- Returns:
- The according
Column
representing string values.
-