prefuse.data.io
Class AbstractGraphWriter
java.lang.Object
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
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 |
AbstractGraphWriter
public AbstractGraphWriter()
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 writefilename
- 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 writef
- the file to write the graph to
- Throws:
DataIOException
- See Also:
GraphWriter.writeGraph(prefuse.data.Graph, java.io.File)
Copyright © 2008 Regents of the University of California