prefuse.data.io
Class TreeMLWriter

java.lang.Object
  extended by prefuse.data.io.AbstractGraphWriter
      extended by 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.
 
Constructor Summary
TreeMLWriter()
           
 
Method Summary
 void writeGraph(Graph graph, java.io.OutputStream os)
          Write a graph from the given OutputStream.
 
Methods inherited from class prefuse.data.io.AbstractGraphWriter
writeGraph, writeGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeMLWriter

public TreeMLWriter()
Method Detail

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 write
os - 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