public abstract class AbstractGraphReader extends java.lang.Object implements GraphReader
GraphReader.readGraph(InputStream)
method.Constructor and Description |
---|
AbstractGraphReader() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 fromDataIOException
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 fromDataIOException
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 fromDataIOException
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 fromDataIOException
GraphReader.readGraph(java.io.InputStream)
Copyright ? 2013 Regents of the University of California