prefuse.data.io
Class GraphMLWriter

java.lang.Object
  extended by prefuse.data.io.AbstractGraphWriter
      extended by prefuse.data.io.GraphMLWriter
All Implemented Interfaces:
GraphWriter

public class GraphMLWriter
extends AbstractGraphWriter

GraphWriter instance that writes a graph file formatted using the GraphML file format. GraphML is an XML format supporting graph structure and typed data schemas for both nodes and edges. For more information about the format, please see the GraphML home page.

The GraphML spec only supports the data types int, long, float, double, boolean, and string. An exception will be thrown if a data type outside these allowed types is encountered.

Author:
jeffrey heer

Nested Class Summary
static interface GraphMLWriter.Tokens
          String tokens used in the GraphML format.
 
Constructor Summary
GraphMLWriter()
           
 
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

GraphMLWriter

public GraphMLWriter()
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