private byte [ ] getCSVOutput ( List < String [ ] > lines ) { StringWriter writer = new StringWriter ( ) ; csv = new CSVWriter ( writer , delimiter . separator ( ) . charAt ( 0 ) ) ; for ( int i = 0 ; i < lines . size ( ) ; i ++ ) { csv . writeNext ( ( String [ ] ) lines . get ( i ) , quotes ) ; } // The contents returned is the CSV string return writer . toString ( ) . getBytes ( ) ; }
Returns the CSV output file data .