org.grinvin.io

Class EmbeddingSaver


public class EmbeddingSaver
extends java.lang.Object

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

Constructor Summary

EmbeddingSaver(EmbeddingView embedding)
Creates a new instance of this saver for the given embedding

Method Summary

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

Constructor Details

EmbeddingSaver

public EmbeddingSaver(EmbeddingView embedding)
Creates a new instance of this saver for the given embedding
Parameters:
embedding - embedding to be saved

Method Details

save

public void save(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 Element toElement()
Convert the given embedding to a JDOM-element.