|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sen.util.CSVParser
public class CSVParser
parse CSV file and extract token.
| Constructor Summary | |
|---|---|
CSVParser(InputStream inputStream,
String charset)
Constructor for a parser that reads lines from an InputStream |
|
CSVParser(String string)
Constructor for a parser that reads lines from a String |
|
| Method Summary | |
|---|---|
String |
currentLine()
Returns the unparsed current line of text |
boolean |
nextRow()
Advances to the next line of CSV data, if any, skipping any remaining values on the current row |
String |
nextToken()
Reads the next value from the current line |
String[] |
nextTokens()
Returns an array of all values from the next line of the input |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVParser(InputStream inputStream,
String charset)
throws IOException
inputStream - The InputStream to read fromcharset - The charset of the InputStream
IOExceptionpublic CSVParser(String string)
string - The string to read from| Method Detail |
|---|
public boolean nextRow()
throws IOException
true if a line was read; false othewise
IOExceptionpublic String nextToken()
public String[] nextTokens()
throws IOException
IOExceptionpublic String currentLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||