org.grinvin.io.graphs

Class GraphSaver


public class GraphSaver
extends java.lang.Object

Saves a GraphView as a graph.xml-section onto an output stream.

Method Summary

static void
save(GraphView graph, OutputStream out)
Save the graph onto the output stream.
static Element
toElement(GraphView graph)
Create a JDOM-element that represents the abstract graph for this initializer.

Method Details

save

public static void save(GraphView graph,
                        OutputStream out)
            throws IOException
Save the graph onto the output stream.
Parameters:
out - Output stream to which the result shall be written.

toElement

public static Element toElement(GraphView graph)
Create a JDOM-element that represents the abstract graph for this initializer.