Class TabularSugar

java.lang.Object
org.refcodes.tabular.TabularSugar

public class TabularSugar extends Object
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 Details

    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, File aCsvFile) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(ColumnFactory<T> aColumnFactory, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. This constructor supports a ColumnFactory for creating Column instance according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values from the storage format to the actual required type.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(File aCsvFile, char aCsvSeparator, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(File aCsvFile, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The type managed by the Records.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset to be used as encoding.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Returns:
      the csv record reader
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static <T> CsvRecordReader<T> csvRecordReader(Header<T> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) throws IOException
      Constructs a CsvRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The Header to use when parsing the lines retrieved from the InputStream.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, char aCsvDelimiter, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, Charset aEncoding, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset to be used as encoding.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, Charset aEncoding, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(InputStream aCsvInputStream, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aHeader - The String elements representing the Header to use when parsing the input.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, File aCsvFile) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      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 a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordReader

      public static CsvStringRecordReader csvRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset to be used as encoding.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Returns:
      The accordingly created CsvStringRecordReader.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, char aCsvDelimiter) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, File aCsvFile, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, char aCsvDelimiter)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - The header used for logging in the correct format.
      aPrintStream - The PrintStream to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(ColumnFactory<T> aColumnFactory, PrintStream aPrintStream, char aCsvDelimiter)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aColumnFactory - A ColumnFactory to be used to generate Column instances from the top line of the CSF file, required for parsing the CSV lines and converting them to Record instances.
      aPrintStream - The PrintStream to be used for printing output.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile) throws FileNotFoundException
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aCsvFile - The File to be used for printing output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, char aCsvDelimiter) throws FileNotFoundException
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aCsvFile - The File to be used for printing output. aCsvDelimiter The separator to be used when separating the CSV values in the log output.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(File aFile, char aCsvDelimiter, String... aHeader) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aFile - the File to which to write.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, Charset aEncoding) throws IOException
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - the generic type
      Parameters:
      aCsvFile - The File to be used for printing output.
      aEncoding - The Charset to be used as encoding.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(File aCsvFile, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - the generic type
      Parameters:
      aCsvFile - The File to be used for printing output. aCsvDelimiter The separator to be used when separating the CSV values in the log output.
      aEncoding - The Charset to be used as encoding.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(File aFile, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aFile - the File to which to write.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(File aFile, Charset aEncoding, String... aHeader) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aFile - the File to which to write.
      aEncoding - The Charset for the character encoding to use.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(File aFile, String... aHeader) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aFile - the File to which to write.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, char aCsvDelimiter) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, Charset aEncoding) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, File aCsvFile, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvFile - The File to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, char aCsvDelimiter)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, OutputStream aCsvOutputStream, Charset aEncoding, char aCsvDelimiter) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aCsvOutputStream - The OutputStream to be used for printing.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, PrintStream aPrintStream)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aPrintStream - The PrintStream to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(Header<T> aHeader, PrintStream aPrintStream, char aCsvDelimiter)
      Constructs a CsvRecordWriter with the given header for logging.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aHeader - The header used for logging in the correct format.
      aPrintStream - The PrintStream to be used for printing.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(OutputStream aCsvOutputStream)
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aCsvOutputStream - The OutputStream to be used for printing output.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, char aCsvDelimiter, String... aHeader)
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aOutputStream - The OutputStream where to write to.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(OutputStream aCsvOutputStream, Charset aEncoding) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - the generic type
      Parameters:
      aCsvOutputStream - The OutputStream to be used for printing output.
      aEncoding - The Charset to be used as encoding.
      Returns:
      The accordingly created CsvRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aOutputStream - The OutputStream where to write to.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(OutputStream aOutputStream, Charset aEncoding, String... aHeader) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aOutputStream - The OutputStream where to write to.
      aEncoding - The Charset for the character encoding to use.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static <T> CsvRecordWriter<T> csvRecordWriter(PrintStream aPrintStream)
      Constructs a CsvRecordWriter.
      Type Parameters:
      T - The generic type of the Header.
      Parameters:
      aPrintStream - The PrintStream to be used for printing.
      Returns:
      The accordingly created CsvRecordWriter.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(PrintStream aPrintStream, char aCsvDelimiter, String... aHeader)
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aPrintStream - The PrintStream to be used for printing output.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      aHeader - The String elements representing the header used for logging in the correct format.
      Returns:
      The accordingly created CsvStringRecordWriter.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aFile - the File to which to write.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile, char aCsvDelimiter) throws FileNotFoundException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aFile - the File to which to write.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      FileNotFoundException - If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile, Charset aEncoding) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aFile - the File to which to write.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, File aFile, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aFile - the File to which to write.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      IOException - in case the file is not found or the encoding is not supported.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream)
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aOutputStream - The OutputStream where to write to.
      Returns:
      The accordingly created CsvStringRecordWriter.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, char aCsvDelimiter)
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aOutputStream - The OutputStream where to write to.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvStringRecordWriter.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, Charset aEncoding) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aOutputStream - The OutputStream where to write to.
      aEncoding - The Charset for the character encoding to use.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, OutputStream aOutputStream, Charset aEncoding, char aCsvDelimiter) throws UnsupportedEncodingException
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aOutputStream - The OutputStream where to write to.
      aEncoding - The Charset for the character encoding to use.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvStringRecordWriter.
      Throws:
      UnsupportedEncodingException - thrown in case an unsupported encoding (Charset) has been provided.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, PrintStream aPrintStream)
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aPrintStream - The PrintStream to be used for printing.
      Returns:
      The accordingly created CsvStringRecordWriter.
    • csvRecordWriter

      public static CsvStringRecordWriter csvRecordWriter(String[] aHeader, PrintStream aPrintStream, char aCsvDelimiter)
      Constructs a CsvRecordWriter with the given header for logging.
      Parameters:
      aHeader - The String elements representing the header used for logging in the correct format.
      aPrintStream - The PrintStream to be used for printing output.
      aCsvDelimiter - The separator to be used when separating the CSV values in the log output.
      Returns:
      The accordingly created CsvStringRecordWriter.
    • dateColumn

      public static Column<Date> dateColumn(String aKey)
      Constructs a Column with support for the default SimpleDateFormat instances as defined in the DateFormats.DEFAULT_DATE_FORMATS.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing Date values.
    • dateColumn

      public static Column<Date> dateColumn(String aKey, DateTimeFormatter... aDateFormats)
      Constructs a Column with support for the provided SimpleDateFormat instances.
      Parameters:
      aKey - The key to be used.
      aDateFormats - The SimpleDateFormat instances used for parsing date strings.
      Returns:
      The according Column representing Date values.
    • doubleColumn

      public static Column<Double> doubleColumn(String aKey)
      Constructs a Column with support for double values.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing double values.
    • enumColumn

      public static <T extends Enum<T>> Column<T> enumColumn(String aKey, Class<T> aType)
      Constructs a Column with support for enumeration values.
      Type Parameters:
      T - the generic enumerations's type
      Parameters:
      aKey - The key to be used.
      aType - The enumeration's type.
      Returns:
      The according Column representing enumeration values.
    • floatColumn

      public static Column<Float> floatColumn(String aKey)
      Constructs a Column with support for float values.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing float values.
    • headerOf

      public static Header<?> headerOf(Column<?>... aColumns)
      Creates a new Header instance from the given Column elements.
      Parameters:
      aColumns - The Column instances representing the Header.
      Returns:
      The accordingly created Header.
    • headerOf

      public static Header<String> headerOf(String... aHeader)
      Instantiates a Header for managing String instances.
      Parameters:
      aHeader - The elements representing the Header's Column instances.
      Returns:
      The accordingly created Header.
    • booleanColumn

      public static Column<Boolean> booleanColumn(String aKey)
      Constructs a Column with support for boolean values.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing boolean values.
    • intColumn

      public static Column<Integer> intColumn(String aKey)
      Constructs a Column with support for integer values.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing integer values.
    • longColumn

      public static Column<Long> longColumn(String aKey)
      Constructs a Column with support for long values.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing long values.
    • stringColumn

      public static Column<String> stringColumn(String aKey)
      Constructs a Column with support for string values.
      Parameters:
      aKey - The key to be used.
      Returns:
      The according Column representing string values.