org.gersteinlab.tyna.core.io
Interface GraphWriter

All Known Implementing Classes:
CSVIO, SIFIO, TDIO

public interface GraphWriter

        This interface declares that each implemented class is a graph writer
        that outputs a graph to an output stream or a writer.
        

Version:
1.0 (September 20, 2005) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip

Method Summary
 void writeGraph(Graph graph, java.io.OutputStream out)
          Write the graph to an output stream.
 void writeGraph(Graph graph, java.io.Writer out)
          Write the graph to a writer.
 

Method Detail

writeGraph

void writeGraph(Graph graph,
                java.io.OutputStream out)
                throws GraphTypeException,
                       java.io.IOException
Write the graph to an output stream. The method does not close the stream.

Parameters:
graph - The graph
out - The output stream
Throws:
java.io.IOException - When there is an IO error
GraphTypeException - When the graph type does not match requirements

writeGraph

void writeGraph(Graph graph,
                java.io.Writer out)
                throws GraphTypeException,
                       java.io.IOException
Write the graph to a writer. The method does not close the writer.

Parameters:
graph - The graph
out - The writer
Throws:
java.io.IOException - When there is an IO error
GraphTypeException - When the graph type does not match requirements