|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscratch.scott.CSVParser
public class CSVParser
Field Summary | |
---|---|
static char |
DEFAULT_SEP
|
protected char |
fieldSep
the separator char for this parser |
protected ArrayList |
list
The fields in the current String |
Constructor Summary | |
---|---|
CSVParser()
Construct a CSV parser, with the default separator (`,'). |
|
CSVParser(char sep)
Construct a CSV parser with a given separator. |
Method Summary | |
---|---|
protected int |
advPlain(String s,
StringBuffer sb,
int i)
advPlain: unquoted field; return index of next separator |
protected int |
advQuoted(String s,
StringBuffer sb,
int i)
advQuoted: quoted field; return index of next separator |
Iterator |
parse(String line)
parse: break the input String into fields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char DEFAULT_SEP
protected ArrayList list
protected char fieldSep
Constructor Detail |
---|
public CSVParser()
public CSVParser(char sep)
Method Detail |
---|
public Iterator parse(String line)
protected int advQuoted(String s, StringBuffer sb, int i)
protected int advPlain(String s, StringBuffer sb, int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |