|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for classes that wish to act as a file format for the JavaCreek program. By implementing this interface, a class can support a new file format, allowing JavaCreek to read and write in that format.
Because the read/write methods use generic input/output streams the caller can read or write to anything, not just files on disk.
Method Summary | |
boolean |
read(java.io.FileInputStream is,
Graph grp,
java.lang.StringBuffer title)
Read the given input file and fill in the given Graph. |
boolean |
write(java.io.FileOutputStream os,
Graph graph,
java.lang.String title)
Writes the graph to the given output stream. |
Method Detail |
public boolean read(java.io.FileInputStream is, Graph grp, java.lang.StringBuffer title)
is
- input stream to read from
public boolean write(java.io.FileOutputStream os, Graph graph, java.lang.String title)
os
- output stream to write to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |