prefuse.data.io
Interface TableReader

All Known Implementing Classes:
AbstractTableReader, AbstractTextTableReader, CSVTableReader, DelimitedTextTableReader, FixedWidthTextTableReader

public interface TableReader

Interface for classes that read in Table data from a particular file format.

Author:
jeffrey heer

Method Summary
 Table<?> readTable(java.io.File f)
          Read in a table from the given File.
 Table<?> readTable(java.io.InputStream is)
          Read in a table from the given InputStream.
 Table<?> readTable(java.lang.String location)
          Read in a table from the file at the given location.
 Table<?> readTable(java.net.URL url)
          Read in a table from the given URL.
 

Method Detail

readTable

Table<?> readTable(java.lang.String location)
                   throws DataIOException
Read in a table from the file at the given location. Though not required by this interface, the String is typically resolved using the IOLib.streamFromString(String) method, allowing URLs, classpath references, and files on the file system to be accessed.

Parameters:
location - the location to read the table from
Returns:
the loaded Table
Throws:
DataIOException
See Also:
IOLib.streamFromString(String)

readTable

Table<?> readTable(java.net.URL url)
                   throws DataIOException
Read in a table from the given URL.

Parameters:
url - the url to read the graph from
Returns:
the loaded Table
Throws:
DataIOException

readTable

Table<?> readTable(java.io.File f)
                   throws DataIOException
Read in a table from the given File.

Parameters:
f - the file to read the table from
Returns:
the loaded Table
Throws:
DataIOException

readTable

Table<?> readTable(java.io.InputStream is)
                   throws DataIOException
Read in a table from the given InputStream.

Parameters:
is - the InputStream to read the table from
Returns:
the loaded Table
Throws:
DataIOException


Copyright © 2008 Regents of the University of California