public byte [ ] getContents ( FileColumn [ ] columns , List < String [ ] > lines ) throws IOException { byte [ ] ret ; // Excel spreadsheet if ( format . isExcel ( ) ) { ret = getExcelOutput ( columns , lines ) ; } else // Assume it's a CSV file { ret = getCSVOutput ( lines ) ; } return ret ; }
Returns the formatted output file contents .