public static void main(String[] args) throws Exception {
try {
InputStream in = new FileInputStream("temp");
Resource resource = new InputStreamResource(in);
CSVReader csvReader = new CSVReader(new BufferedReader(
new InputStreamReader(resource.getInputStream())));
List<String> list = csvReader.readLine();
while (list.size() > 0) {
System.out.println(list);
list = csvReader.readLine();
}
} catch (Throwable t) {
log.warn("Error", t);
throw new Exception(t);