|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.io.AbstractGraphReader
public abstract class AbstractGraphReader
Abstract base class implementation of the GraphReader interface. Provides
implementations for all but the
GraphReader.readGraph(InputStream)
method.
Constructor Summary | |
---|---|
AbstractGraphReader()
|
Method Summary | |
---|---|
Graph |
readGraph(java.io.File f)
Read in a graph from the given File. |
abstract Graph |
readGraph(java.io.InputStream is)
Read in a graph from the given InputStream. |
Graph |
readGraph(java.lang.String location)
Read in a graph from the file at the given location. |
Graph |
readGraph(java.net.URL url)
Read in a graph from the given URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractGraphReader()
Method Detail |
---|
public Graph readGraph(java.lang.String location) throws DataIOException
GraphReader
IOLib.streamFromString(String)
method,
allowing URLs, classpath references, and files on the file system
to be accessed.
readGraph
in interface GraphReader
location
- the location to read the table from
DataIOException
GraphReader.readGraph(java.lang.String)
public Graph readGraph(java.net.URL url) throws DataIOException
GraphReader
readGraph
in interface GraphReader
url
- the url to read the graph from
DataIOException
GraphReader.readGraph(java.net.URL)
public Graph readGraph(java.io.File f) throws DataIOException
GraphReader
readGraph
in interface GraphReader
f
- the file to read the graph from
DataIOException
GraphReader.readGraph(java.io.File)
public abstract Graph readGraph(java.io.InputStream is) throws DataIOException
GraphReader
readGraph
in interface GraphReader
is
- the InputStream to read the graph from
DataIOException
GraphReader.readGraph(java.io.InputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |