prefuse.data.io
Class TreeMLWriter
java.lang.Object
prefuse.data.io.AbstractGraphWriter
prefuse.data.io.TreeMLWriter
- All Implemented Interfaces:
- GraphWriter
public class TreeMLWriter
- extends AbstractGraphWriter
GraphWriter instance that writes a tree file formatted using the
TreeML file format. TreeML is an XML format originally created for
the 2003 InfoVis conference contest. A DTD (Document Type Definition) for
TreeML is
available online.
The GraphML spec only supports the data types Int,
Long, Float, Real (double),
Boolean, String, and Date.
An exception will be thrown if a data type outside these allowed
types is encountered.
- Author:
- jeffrey heer
|
Nested Class Summary |
static interface |
TreeMLWriter.Tokens
String tokens used in the TreeML format. |
|
Method Summary |
void |
writeGraph(Graph graph,
java.io.OutputStream os)
Write a graph from the given OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeMLWriter
public TreeMLWriter()
writeGraph
public void writeGraph(Graph graph,
java.io.OutputStream os)
throws DataIOException
- Description copied from interface:
GraphWriter
- Write a graph from the given OutputStream.
- Parameters:
graph - the Graph to writeos - the OutputStream to write the graph to
- Throws:
DataIOException- See Also:
GraphWriter.writeGraph(prefuse.data.Graph, java.io.OutputStream)
Copyright © 2007 Regents of the University of California