prefuse.data.io
Class AbstractTableReader

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

public abstract class AbstractTableReader
extends java.lang.Object
implements TableReader

Abstract base class implementation of the TableReader interface. Provides implementations for all but the TableReader.readTable(InputStream) method.

Author:
jeffrey heer

Constructor Summary
AbstractTableReader()
           
 
Method Summary
 Table readTable(java.io.File f)
          Read in a table from the given File.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface prefuse.data.io.TableReader
readTable
 

Constructor Detail

AbstractTableReader

public AbstractTableReader()
Method Detail

readTable

public Table readTable(java.lang.String location)
                throws DataIOException
Description copied from interface: TableReader
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.

Specified by:
readTable in interface TableReader
Parameters:
location - the location to read the table from
Returns:
the loaded Table
Throws:
DataIOException
See Also:
TableReader.readTable(java.lang.String)

readTable

public Table readTable(java.net.URL url)
                throws DataIOException
Description copied from interface: TableReader
Read in a table from the given URL.

Specified by:
readTable in interface TableReader
Parameters:
url - the url to read the graph from
Returns:
the loaded Table
Throws:
DataIOException
See Also:
TableReader.readTable(java.net.URL)

readTable

public Table readTable(java.io.File f)
                throws DataIOException
Description copied from interface: TableReader
Read in a table from the given File.

Specified by:
readTable in interface TableReader
Parameters:
f - the file to read the table from
Returns:
the loaded Table
Throws:
DataIOException
See Also:
TableReader.readTable(java.io.File)


Copyright © 2007 Regents of the University of California