public void print ( String [ ] [ ] values ) throws IOException { if ( values == null || values . length == 0 ) { csvPrinter . println ( ) ; } else { for ( String [ ] value : values ) { csvPrinter . printRecords ( ( Object ) value ) ; } } csvPrinter . flush ( ) ; }
Print several lines of comma separated values . The values will be quoted if needed . Quotes and new line characters will be escaped .