Class TabularSugar
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.-
Method Summary
Modifier and TypeMethodDescriptionbooleanColumn(String aKey) Constructs aColumnwith support for boolean values.static CsvStringRecordReadercsvRecordReader(File aCsvFile, char aCsvSeparator, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(File aCsvFile, char aCsvSeparator, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(File aCsvFile, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(File aCsvFile, Charset aEncoding, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(File aCsvFile, Charset aEncoding, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(InputStream aCsvInputStream, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(InputStream aCsvInputStream, char aCsvDelimiter, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(InputStream aCsvInputStream, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(InputStream aCsvInputStream, Charset aEncoding, boolean isStrict, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(InputStream aCsvInputStream, Charset aEncoding, String... aHeader) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, boolean isStrict) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, char aCsvSeparator) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, InputStream aCsvInputStream) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, InputStream aCsvInputStream, boolean isStrict) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, InputStream aCsvInputStream, char aCsvDelimiter) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) Constructs aCsvStringRecordReaderwith the given parameters.static CsvStringRecordReadercsvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvStringRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvSeparator) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvSeparator) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, char aCsvSeparator) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) Constructs aCsvRecordReaderwith the given parameters.static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile) Constructs aCsvRecordWriter.static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, char aCsvDelimiter) Constructs aCsvRecordWriter.static CsvStringRecordWritercsvRecordWriter(File aFile, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(File aFile, String... aHeader) Constructs aCsvRecordWriterwith 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 CsvStringRecordWritercsvRecordWriter(File aFile, Charset aEncoding, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(File aFile, Charset aEncoding, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(OutputStream aCsvOutputStream) Constructs aCsvRecordWriter.static CsvStringRecordWritercsvRecordWriter(OutputStream aOutputStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(OutputStream aCsvOutputStream, Charset aEncoding) Constructs aCsvRecordWriter.static CsvStringRecordWritercsvRecordWriter(OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(OutputStream aOutputStream, Charset aEncoding, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(PrintStream aPrintStream) Constructs aCsvRecordWriter.static CsvStringRecordWritercsvRecordWriter(PrintStream aPrintStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, File aFile) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, File aFile, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, File aFile, Charset aEncoding) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, File aFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, OutputStream aOutputStream) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, OutputStream aOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, OutputStream aOutputStream, Charset aEncoding) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, PrintStream aPrintStream) Constructs aCsvRecordWriterwith the given header for logging.static CsvStringRecordWritercsvRecordWriter(String[] aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, Charset aEncoding) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, PrintStream aPrintStream) Constructs aCsvRecordWriterwith the given header for logging.static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.dateColumn(String aKey) Constructs aColumnwith support for the defaultSimpleDateFormatinstances as defined in theDateFormats.DEFAULT_DATE_FORMATS.dateColumn(String aKey, DateTimeFormatter... aDateFormats) Constructs aColumnwith support for the providedSimpleDateFormatinstances.doubleColumn(String aKey) Constructs aColumnwith support for double values.enumColumn(String aKey, Class<T> aType) Constructs aColumnwith support for enumeration values.floatColumn(String aKey) Constructs aColumnwith support for float values.static Header<?> Constructs aColumnwith support for integer values.longColumn(String aKey) Constructs aColumnwith support for long values.stringColumn(String aKey) Constructs aColumnwith support for string values.
-
Method Details
-
csvRecordReader
public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile) throws IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. This constructor supports aColumnFactoryfor creatingColumninstance according to the keys found in the CSV top line. TheColumninstances 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- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich 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- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich to parse.aCsvSeparator- The delimiter being expected for the CSV input stream.aHeader- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor the character encoding to use.aCsvSeparator- The delimiter being expected for the CSV input stream.aHeader- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor the character encoding to use.aHeader- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvFile- The CSVFilewhich to parse.aHeader- TheStringelements representing theHeaderto 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The type managed by theRecords.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetto 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 aCsvRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aHeader- TheHeaderto use when parsing the lines retrieved from theInputStream.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvInputStream- The CSVInputStreamwhich 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- TheStringelements representing theHeaderto 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvInputStream- The CSVInputStreamwhich to parse.aCsvDelimiter- The delimiter being expected for the CSV input stream.aHeader- TheStringelements representing theHeaderto 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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- TheStringelements representing theHeaderto 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetto be used as encoding.aCsvDelimiter- The delimiter being expected for the CSV input stream.aHeader- TheStringelements representing theHeaderto 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor the character encoding to use.aHeader- TheStringelements representing theHeaderto 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aCsvInputStream- The CSVInputStreamwhich to parse.aHeader- TheStringelements representing theHeaderto 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 IOException Constructs aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvFile- The CSVFilewhich to parse.aEncoding- TheCharsetfor 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvInputStream- The CSVInputStreamwhich 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvInputStream- The CSVInputStreamwhich 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvInputStream- The CSVInputStreamwhich 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetfor 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 aCsvStringRecordReaderwith the given parameters. InternallyColumninstances are generated according to the keys found in the CSV top line. TheColumninstances are required to convert the CSV line values. If aHeaderis provided, then theHeaderis used for generating theColumninstances instead of the top line of the CSV file.- Parameters:
aHeader- TheStringelements representing theHeaderto use when parsing the input.aCsvInputStream- The CSVInputStreamwhich to parse.aEncoding- TheCharsetto 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 aCsvRecordWriterwith 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- TheFileto 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 aCsvRecordWriterwith 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- TheFileto 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 aCsvRecordWriterwith 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- TheFileto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- TheFileto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- TheOutputStreamto be used for printing.- Returns:
- The accordingly created
CsvRecordWriter.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith 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- TheOutputStreamto 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 aCsvRecordWriterwith 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- TheOutputStreamto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- TheOutputStreamto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- ThePrintStreamto be used for printing.- Returns:
- The accordingly created
CsvRecordWriter.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.- Type Parameters:
T- The generic type of theHeader.- Parameters:
aColumnFactory- AColumnFactoryto be used to generateColumninstances from the top line of the CSF file, required for parsing the CSV lines and converting them toRecordinstances.aPrintStream- ThePrintStreamto 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- TheFileto 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- TheFileto 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aFile- theFileto which to write.aCsvDelimiter- The separator to be used when separating the CSV values in the log output.aHeader- TheStringelements 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- TheFileto be used for printing output.aEncoding- TheCharsetto 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- TheFileto be used for printing output. aCsvDelimiter The separator to be used when separating the CSV values in the log output.aEncoding- TheCharsetto 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aFile- theFileto which to write.aEncoding- TheCharsetfor the character encoding to use.aCsvDelimiter- The separator to be used when separating the CSV values in the log output.aHeader- TheStringelements 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aFile- theFileto which to write.aEncoding- TheCharsetfor the character encoding to use.aHeader- TheStringelements 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aFile- theFileto which to write.aHeader- TheStringelements 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 aCsvRecordWriterwith 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- TheFileto 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 aCsvRecordWriterwith 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- TheFileto 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 aCsvRecordWriterwith 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- TheFileto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- TheFileto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- TheOutputStreamto be used for printing.- Returns:
- The accordingly created
CsvRecordWriter.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith 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- TheOutputStreamto 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 aCsvRecordWriterwith 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- TheOutputStreamto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- TheOutputStreamto be used for printing.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith 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- ThePrintStreamto be used for printing.- Returns:
- The accordingly created
CsvRecordWriter.
-
csvRecordWriter
public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith 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- ThePrintStreamto 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- TheOutputStreamto be used for printing output.- Returns:
- The accordingly created
CsvRecordWriter.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.- Parameters:
aOutputStream- TheOutputStreamwhere to write to.aCsvDelimiter- The separator to be used when separating the CSV values in the log output.aHeader- TheStringelements 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- TheOutputStreamto be used for printing output.aEncoding- TheCharsetto 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aOutputStream- TheOutputStreamwhere to write to.aEncoding- TheCharsetfor the character encoding to use.aCsvDelimiter- The separator to be used when separating the CSV values in the log output.aHeader- TheStringelements 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aOutputStream- TheOutputStreamwhere to write to.aEncoding- TheCharsetfor the character encoding to use.aHeader- TheStringelements 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- ThePrintStreamto be used for printing.- Returns:
- The accordingly created
CsvRecordWriter.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(PrintStream aPrintStream, char aCsvDelimiter, String... aHeader) Constructs aCsvRecordWriterwith the given header for logging.- Parameters:
aPrintStream- ThePrintStreamto be used for printing output.aCsvDelimiter- The separator to be used when separating the CSV values in the log output.aHeader- TheStringelements 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aFile- theFileto 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aFile- theFileto 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aFile- theFileto which to write.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aFile- theFileto which to write.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aOutputStream- TheOutputStreamwhere to write to.- Returns:
- The accordingly created
CsvStringRecordWriter.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aOutputStream- TheOutputStreamwhere 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aOutputStream- TheOutputStreamwhere to write to.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aOutputStream- TheOutputStreamwhere to write to.aEncoding- TheCharsetfor 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 aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aPrintStream- ThePrintStreamto be used for printing.- Returns:
- The accordingly created
CsvStringRecordWriter.
-
csvRecordWriter
public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, PrintStream aPrintStream, char aCsvDelimiter) Constructs aCsvRecordWriterwith the given header for logging.- Parameters:
aHeader- TheStringelements representing the header used for logging in the correct format.aPrintStream- ThePrintStreamto 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
-
dateColumn
Constructs aColumnwith support for the providedSimpleDateFormatinstances.- Parameters:
aKey- The key to be used.aDateFormats- TheSimpleDateFormatinstances used for parsing date strings.- Returns:
- The according
ColumnrepresentingDatevalues.
-
doubleColumn
-
enumColumn
-
floatColumn
-
headerOf
-
headerOf
-
booleanColumn
-
intColumn
-
longColumn
-
stringColumn
-