org.dishevelled.graph.io.ygraphml
Class YGraphMLWriter

java.lang.Object
  extended by org.dishevelled.graph.io.ygraphml.YGraphMLWriter
All Implemented Interfaces:
GraphWriter<ShapeNode,PolyLineEdge>

public final class YGraphMLWriter
extends Object
implements GraphWriter<ShapeNode,PolyLineEdge>

Graph writer for the yFiles extension to GraphML.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Constructor Summary
YGraphMLWriter()
          Create a new YGraphML writer.
 
Method Summary
 void write(Graph<ShapeNode,PolyLineEdge> graph, File file)
          Write the specified graph to the specified file.
 void write(Graph<ShapeNode,PolyLineEdge> graph, OutputStream outputStream)
          Write the specified graph to the specified output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YGraphMLWriter

public YGraphMLWriter()
Create a new YGraphML writer.

Method Detail

write

public void write(Graph<ShapeNode,PolyLineEdge> graph,
                  File file)
           throws IOException
Write the specified graph to the specified file.

Specified by:
write in interface GraphWriter<ShapeNode,PolyLineEdge>
Parameters:
graph - graph to write, must not be null
file - file to write to, must not be null
Throws:
IOException - if an IO error occurs

write

public void write(Graph<ShapeNode,PolyLineEdge> graph,
                  OutputStream outputStream)
           throws IOException
Write the specified graph to the specified output stream.

Specified by:
write in interface GraphWriter<ShapeNode,PolyLineEdge>
Parameters:
graph - graph to write, must not be null
outputStream - output stream to write to, must not be null
Throws:
IOException - if an IO error occurs


Copyright (c) 2008-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).