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
GraphReaderIOLib.streamFromString(String) method,
allowing URLs, classpath references, and files on the file system
to be accessed.readGraph in interface GraphReaderlocation - the location to read the graph fromDataIOExceptionGraphReader.readGraph(java.lang.String)public Graph readGraph(java.net.URL url) throws DataIOException
GraphReaderreadGraph in interface GraphReaderurl - the url to read the graph fromDataIOExceptionGraphReader.readGraph(java.net.URL)public Graph readGraph(java.io.File f) throws DataIOException
GraphReaderreadGraph in interface GraphReaderf - the file to read the graph fromDataIOExceptionGraphReader.readGraph(java.io.File)public abstract Graph readGraph(java.io.InputStream is) throws DataIOException
GraphReaderreadGraph in interface GraphReaderis - the InputStream to read the graph fromDataIOExceptionGraphReader.readGraph(java.io.InputStream)