prefuse.data.io
Class AbstractGraphWriter

java.lang.Object
  extended by prefuse.data.io.AbstractGraphWriter
All Implemented Interfaces:
GraphWriter
Direct Known Subclasses:
GraphMLWriter, TreeMLWriter

public abstract class AbstractGraphWriter
extends java.lang.Object
implements GraphWriter

Abstract base class implementation of the GraphWriter interface. Provides implementations for all but the GraphWriter.writeGraph(Graph, OutputStream) method.

Author:
jeffrey heer

Constructor Summary
AbstractGraphWriter()
           
 
Method Summary
 void writeGraph(Graph graph, java.io.File f)
          Write a graph to the given File.
 void writeGraph(Graph graph, java.lang.String filename)
          Write a graph to the file with the given filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface prefuse.data.io.GraphWriter
writeGraph
 

Constructor Detail

AbstractGraphWriter

public AbstractGraphWriter()
Method Detail

writeGraph

public void writeGraph(Graph graph,
                       java.lang.String filename)
                throws DataIOException
Description copied from interface: GraphWriter
Write a graph to the file with the given filename.

Specified by:
writeGraph in interface GraphWriter
Parameters:
graph - the Graph to write
filename - the file to write the graph to
Throws:
DataIOException
See Also:
GraphWriter.writeGraph(prefuse.data.Graph, java.lang.String)

writeGraph

public void writeGraph(Graph graph,
                       java.io.File f)
                throws DataIOException
Description copied from interface: GraphWriter
Write a graph to the given File.

Specified by:
writeGraph in interface GraphWriter
Parameters:
graph - the Graph to write
f - the file to write the graph to
Throws:
DataIOException
See Also:
GraphWriter.writeGraph(prefuse.data.Graph, java.io.File)


Copyright © 2007 Regents of the University of California