org.grinvin.io.graphs

Class AnnotationSaver


public class AnnotationSaver
extends java.lang.Object

Method Summary

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

Method Details

save

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

toElement

public static Element toElement(AnnotationView annotation)
Convert the given annotation to a JDOM-element.