prefuse.data.io
Interface GraphWriter

All Known Implementing Classes:
AbstractGraphWriter, GraphMLWriter, TreeMLWriter

public interface GraphWriter

Interface for classes that write Graph data to a particular file format.

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.io.OutputStream os)
          Write a graph from the given OutputStream.
 void writeGraph(Graph graph, java.lang.String filename)
          Write a graph to the file with the given filename.
 

Method Detail

writeGraph

void writeGraph(Graph graph,
                java.lang.String filename)
                throws DataIOException
Write a graph to the file with the given filename.

Parameters:
graph - the Graph to write
filename - the file to write the graph to
Throws:
DataWriteException
DataIOException

writeGraph

void writeGraph(Graph graph,
                java.io.File f)
                throws DataIOException
Write a graph to the given File.

Parameters:
graph - the Graph to write
f - the file to write the graph to
Throws:
DataWriteException
DataIOException

writeGraph

void writeGraph(Graph graph,
                java.io.OutputStream os)
                throws DataIOException
Write a graph from the given OutputStream.

Parameters:
graph - the Graph to write
os - the OutputStream to write the graph to
Throws:
DataWriteException
DataIOException


Copyright © 2007 Regents of the University of California