]> git.somenet.org - pub/jan/lsdc.git/blob - src/at/ac/tuwien/lsdc/util/CSVParser.java
arguments can now be entered directly from ant
[pub/jan/lsdc.git] / src / at / ac / tuwien / lsdc / util / CSVParser.java
1 package at.ac.tuwien.lsdc.util;
2
3 import java.io.FileReader;
4 import java.io.IOException;
5 import java.util.LinkedList;
6 import java.util.List;
7
8 import at.ac.tuwien.lsdc.types.Application;
9 import au.com.bytecode.opencsv.CSVReader;
10
11 public class CSVParser {
12         private final String filename;
13
14         public CSVParser(String filename) {
15                 this.filename = filename;
16         }
17
18         public LinkedList<Application> parseFile() throws IOException {
19                 CSVReader reader = new CSVReader(new FileReader(filename));
20                 List<String[]> file = reader.readAll();
21                 reader.close();
22                 return new LinkedList<Application>();
23         }
24
25         
26 }