public List<BucketSummaryLine> getBucketSummaryLines(List<String> lines) { List<BucketSummaryLine> summaryLines = new ArrayList<BucketSummaryLine>(); // Start at 1 instead of zero in order to skip the first line since it is just the column headers for (int i = 1; i < lines.size(); i++) { String line = lines.get(i); String[] tokens = line.split(","); String bucket = tokens[0]; Long files = new Long(tokens[1]); Long bytes = new Long(tokens[2]); Date date = FormatUtils.parseDate(tokens[3]); BucketSummaryLine bsl = new BucketSummaryLine(); bsl.setBucket(bucket); bsl.setFiles(files); bsl.setBytes(bytes); bsl.setDate(date); summaryLines.add(bsl); } return summaryLines; }