org.grinvin.io

Class EmbeddingLoader


public class EmbeddingLoader
extends java.lang.Object

Loads an embedding.xml-section from an input stream.

Constructor Summary

EmbeddingLoader(Embedding embedding)
Creates a loader for embeddings.

Method Summary

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.

Constructor Details

EmbeddingLoader

public EmbeddingLoader(Embedding embedding)
Creates a loader for embeddings.
Parameters:
embedding - object which shall hold the resulting graph embedding. The peer of this object should already be initialized.

Method Details

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.