public class CsvParser extends Object
| Constructor and Description |
|---|
CsvParser(String str)
Construct parser from a String.
|
CsvParser(String str,
char separator,
char quote)
Construct parser from a String.
|
| Modifier and Type | Method and Description |
|---|---|
String |
next()
Get the next field from the string.
|
List<String> |
parse()
Parse all fields from the string into a list.
|
public CsvParser(String str, char separator, char quote)
str - the stringseparator - the separator usedquote - used to quote fields containing separatorspublic CsvParser(String str)
Separator is a comma and double quotes are used to quote fields
str - the stringpublic List<String> parse() throws IOException
IOException - if an error occurspublic String next() throws IOException
IOException - if an error occursCopyright © 2014–2015 Tomas Teubner. All rights reserved.