org.grinvin.io
Class EmbeddingLoader
java.lang.Object
org.grinvin.io.EmbeddingLoader
public class EmbeddingLoader
extends java.lang.Object
Loads an embedding.xml-section from an input stream.
void | load(InputStream input) - Load the embedding from the input stream.
|
void | toEmbedding(Element element) - Construct the embedding for the current graph from the given JDOM element.
|
EmbeddingLoader
public EmbeddingLoader(Embedding embedding)
Creates a loader for embeddings.
embedding
- object which shall hold the resulting graph embedding.
The peer of this object should already be initialized.
load
public void load(InputStream input)
throws IOException
Load the embedding from the input stream.
toEmbedding
public void toEmbedding(Element element)
throws IOFormatException
Construct the embedding for the current graph from the given JDOM element.