edu.uci.eecs.doc.cascade.graph
Interface GraphWriter

All Known Implementing Classes:
AbstractGraphWriter, DOTWriter, GMLWriter, GraphMLWriter

public interface GraphWriter

An interface for exporting a control flow graph to various output formats.

Author:
Trevor Harmon

Method Summary
 void write(String filename)
          Exports the control flow graph to the specified file.
 void write(Writer out)
          Exports the control flow graph to the specified output stream.
 

Method Detail

write

void write(String filename)
           throws IOException
Exports the control flow graph to the specified file.

Parameters:
filename - the name of a file in which to save the graph
Throws:
IOException - if the graph cannot be written to disk

write

void write(Writer out)
           throws IOException
Exports the control flow graph to the specified output stream.

Parameters:
out - an output stream in which to save the graph
Throws:
IOException - if the graph cannot be written to the stream