|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.io.AbstractTableReader prefuse.data.io.AbstractTextTableReader prefuse.data.io.CSVTableReader
public class CSVTableReader
TableReader for Comma Separated Value (CSV) files. CSV files list each row of a table on a line, separating each data column by a line. Typically the first line of the file is a header row indicating the names of each data column. For a more in-depth description of the CSV format, please see this CSV reference web page.
Constructor Summary | |
---|---|
CSVTableReader()
Create a new CSVTableReader. |
|
CSVTableReader(ParserFactory parserFactory)
Create a new CSVTableReader. |
Method Summary | |
---|---|
void |
read(java.io.InputStream is,
TableReadListener trl)
Scans the input stream, making call backs for each encountered entry on the provided TextReadListener. |
Methods inherited from class prefuse.data.io.AbstractTextTableReader |
---|
getColumnNames, getDefaultHeader, readTable, setHasHeader |
Methods inherited from class prefuse.data.io.AbstractTableReader |
---|
readTable, readTable, readTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSVTableReader()
public CSVTableReader(ParserFactory parserFactory)
parserFactory
- the ParserFactory to use for parsing text strings
into table values.Method Detail |
---|
public void read(java.io.InputStream is, TableReadListener trl) throws java.io.IOException, DataParseException
AbstractTextTableReader
read
in class AbstractTextTableReader
is
- the InputStream to readtrl
- the TextReadListener that will receive callbacks
java.io.IOException
DataParseException
AbstractTextTableReader.read(java.io.InputStream, prefuse.data.io.TableReadListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |