org.grinvin.io.graphs

Class EmbeddingSaver


public class EmbeddingSaver
extends java.lang.Object

Saves a EmbeddingView as a embedding.xml-section onto an output stream.

Method Summary

static void
save(EmbeddingView embedding, OutputStream out)
Save the embedding graph onto the output stream.
static Element
toElement(EmbeddingView embedding)
Convert the given embedding to a JDOM-element.

Method Details

save

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

toElement

public static Element toElement(EmbeddingView embedding)
Convert the given embedding to a JDOM-element.