prefuse.data.io
Class CSVTableReader

java.lang.Object
  extended by prefuse.data.io.AbstractTableReader
      extended by prefuse.data.io.AbstractTextTableReader
          extended by prefuse.data.io.CSVTableReader
All Implemented Interfaces:
TableReader

public class CSVTableReader
extends AbstractTextTableReader

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.

Author:
jeffrey heer

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

CSVTableReader

public CSVTableReader()
Create a new CSVTableReader.


CSVTableReader

public CSVTableReader(ParserFactory parserFactory)
Create a new CSVTableReader.

Parameters:
parserFactory - the ParserFactory to use for parsing text strings into table values.
Method Detail

read

public void read(java.io.InputStream is,
                 TableReadListener trl)
          throws java.io.IOException,
                 DataParseException
Description copied from class: AbstractTextTableReader
Scans the input stream, making call backs for each encountered entry on the provided TextReadListener.

Specified by:
read in class AbstractTextTableReader
Parameters:
is - the InputStream to read
trl - the TextReadListener that will receive callbacks
Throws:
java.io.IOException
DataParseException
See Also:
AbstractTextTableReader.read(java.io.InputStream, prefuse.data.io.TableReadListener)


Copyright © 2007 Regents of the University of California