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 TSVParser extends DataStreamParser 48 { 49 57 public TSVParser(Reader in) 58 { 59 super(in, null, null); 60 } 61 62 69 public TSVParser(Reader in, List columnNames) 70 { 71 super(in, columnNames, null); 72 } 73 74 83 public TSVParser(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); 96 super.setFieldSeparator('\t'); 98 } 99 } 100 | Popular Tags |