Interface RecordsWriter<T>

    • Method Detail

      • parseHeader

        void parseHeader​(java.lang.String... aHeader)
        Parses and sets the Header from the provided String. You must have provided a ColumnFactory for this operation to succeed.
        Parameters:
        aHeader - The header to be created.
      • writeHeader

        void writeHeader​(java.lang.String... aHeader)
        Parses and sets the Header from the provided String arguments and writes the CSV header to the (standard) output (be it a Stream or a File). You must have provided a ColumnFactory for this operation to succeed.
        Parameters:
        aHeader - The header to be created.
      • writeHeader

        void writeHeader​(Header<T> aHeader)
        Sets and writes the provided Header to the (standard) output (be it a Stream or a File). .
        Parameters:
        aHeader - The header to be created.
      • writeHeader

        void writeHeader​()
        Writes the CSV header to the (standard) output (be it a Stream or a File). You must have provided a Header for this operation to succeed.
      • writeNext

        void writeNext​(java.lang.Object... aRecord)
                throws java.lang.IllegalArgumentException
        Directly logs the provided String instances to the (standard) output.
        Parameters:
        aRecord - The String instances to be logged.
        Throws:
        java.lang.IllegalArgumentException - thrown in case the provided objects do not align with the header (as of HeaderAccessor.getHeader()).