|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gersteinlab.tyna.core.io.SIFIO
This class represents the IO unit for the SIF format for directed graphs. Each line is of the following form:... Node IDs and relationship types are case-insensitive, and are stored in upper case. This format does not allow nodes that have no incident edges. Node names are case-insensitive. White spaces at the beginning and end of a node name are trimmed.
| Constructor Summary | |
SIFIO()
|
|
| Method Summary | |
Graph |
readGraph(java.io.InputStream in,
boolean isDirected,
boolean isMultigraph)
Read the graph from an input stream. |
Graph |
readGraph(java.io.Reader in,
boolean isDirected,
boolean isMultigraph)
Read the graph from a reader. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SIFIO()
| Method Detail |
public Graph readGraph(java.io.InputStream in,
boolean isDirected,
boolean isMultigraph)
throws GraphTypeException,
java.io.IOException,
InputFormatException
GraphReader
readGraph in interface GraphReaderin - The input streamisDirected - Whether the graph is to be directedisMultigraph - Whether the graph is to be a multigraph
GraphTypeException - When the graph type does not match requirements
java.io.IOException - When there is an IO error
InputFormatException - When the input format is invalid
public Graph readGraph(java.io.Reader in,
boolean isDirected,
boolean isMultigraph)
throws GraphTypeException,
java.io.IOException,
InputFormatException
GraphReader
readGraph in interface GraphReaderin - The readerisDirected - Whether the graph is to be directedisMultigraph - Whether the graph is to be a multigraph
GraphTypeException - When the graph type does not match requirements
InputFormatException - When the input format is invalid
java.io.IOException - When there is an IO error
public void writeGraph(Graph graph,
java.io.OutputStream out)
throws GraphTypeException,
java.io.IOException
GraphWriter
writeGraph in interface GraphWritergraph - The graphout - The output stream
java.io.IOException - When there is an IO error
GraphTypeException - When the graph type does not match requirements
public void writeGraph(Graph graph,
java.io.Writer out)
throws GraphTypeException,
java.io.IOException
GraphWriter
writeGraph in interface GraphWritergraph - The graphout - The writer
java.io.IOException - When there is an IO error
GraphTypeException - When the graph type does not match requirements
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||