public final class YGraphMLReader extends Object implements GraphReader<ShapeNode,PolyLineEdge>
Constructor and Description |
---|
YGraphMLReader()
Create a new YGraphML reader.
|
Modifier and Type | Method and Description |
---|---|
Graph<ShapeNode,PolyLineEdge> |
read(File file)
Read a graph from the specified file.
|
Graph<ShapeNode,PolyLineEdge> |
read(InputStream inputStream)
Read a graph from the specified input stream.
|
Graph<ShapeNode,PolyLineEdge> |
read(URL url)
Read a graph from the specified URL.
|
public Graph<ShapeNode,PolyLineEdge> read(File file) throws IOException
read
in interface GraphReader<ShapeNode,PolyLineEdge>
file
- file to read from, must not be nullIOException
- if an IO error occurspublic Graph<ShapeNode,PolyLineEdge> read(InputStream inputStream) throws IOException
read
in interface GraphReader<ShapeNode,PolyLineEdge>
inputStream
- input stream to read from, must not be nullIOException
- if an IO error occurspublic Graph<ShapeNode,PolyLineEdge> read(URL url) throws IOException
read
in interface GraphReader<ShapeNode,PolyLineEdge>
url
- URL to read from, must not be nullIOException
- if an IO error occursCopyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).