|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.vapor.util.CSVParser
public class CSVParser
This class has methods to parse comma separated values and generate data structure for the same.
| Constructor Summary | |
|---|---|
CSVParser()
|
|
| Method Summary | |
|---|---|
static java.util.ArrayList |
parseCSV(java.lang.String csvString)
This method takes a String of Comma seperated data (individual rows seperated by newline i.e. |
static java.util.ArrayList |
parseCSVFile(java.lang.String fileName)
This method parses the given file as a CSV and returns the arraylist of hashmaps. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVParser()
| Method Detail |
|---|
public static java.util.ArrayList parseCSVFile(java.lang.String fileName)
throws java.io.IOException,
java.io.FileNotFoundException
fileName - Name of the file
java.io.IOException - DOCUMENT ME!
java.io.FileNotFoundException - DOCUMENT ME!public static java.util.ArrayList parseCSV(java.lang.String csvString)
csvString - String object containing data in CSV format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||