1 package org.apache.turbine.util.parser; 2 3 18 19 import java.io.Reader ; 20 import java.io.StreamTokenizer ; 21 import java.util.List ; 22 23 47 public class CSVParser extends DataStreamParser 48 { 49 57 public CSVParser(Reader in) 58 { 59 super(in, null, null); 60 } 61 62 69 public CSVParser(Reader in, List columnNames) 70 { 71 super(in, columnNames, null); 72 } 73 74 83 public CSVParser(Reader in, List columnNames, String characterEncoding) 84 { 85 super(in, columnNames, characterEncoding); 86 } 87 88 93 protected void initTokenizer(StreamTokenizer tokenizer) 94 { 95 super.initTokenizer(tokenizer); 97 super.setFieldSeparator(','); 99 100 } 101 } 102 | Popular Tags |