protected static void write(List<Is24CsvRecord> records, OutputStream output) {
        LOGGER.info("writing document");
        try {
            Is24CsvPrinter printer = Is24CsvPrinter.create(output);
            printer.printRecords(records);
            LOGGER.info("> written to a java.io.OutputStream");
        } catch (Exception ex) {
            LOGGER.error("Can't write document into an OutputStream!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }
    }
protected static void write ( List < Is24CsvRecord > records , OutputStream output ) { LOGGER . info ( "writing document" ) ; try { Is24CsvPrinter printer = Is24CsvPrinter . create ( output ) ; printer . printRecords ( records ) ; LOGGER . info ( "> written to a java.io.OutputStream" ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't write document into an OutputStream!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } }
Write some {@link Is24CsvRecord} objects into an {@link OutputStream}.

@param records the CSV records to write
@param output  the stream, where the document is written to