jcreek.cke.document
Class SerializeFormat

java.lang.Object
  extended byjcreek.cke.document.SerializeFormat
All Implemented Interfaces:
CreekFormat

public class SerializeFormat
extends java.lang.Object
implements CreekFormat

Implements the CreekFormat interface to support Serialization

Version:
Author:

Constructor Summary
SerializeFormat()
           
 
Method Summary
 boolean read(java.io.FileInputStream fis, Graph grp, java.lang.StringBuffer title)
          Read the given input file and fill in the given Graph.
 boolean write(java.io.FileOutputStream fos, Graph graph, java.lang.String title)
          Writes the Knowledge Model and the graph to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializeFormat

public SerializeFormat()
Method Detail

read

public boolean read(java.io.FileInputStream fis,
                    Graph grp,
                    java.lang.StringBuffer title)
Description copied from interface: CreekFormat
Read the given input file and fill in the given Graph. If the read failed at any point then false is returned.

Specified by:
read in interface CreekFormat
Parameters:
fis - input stream to read from
Returns:
true if successful, false otherwise

write

public boolean write(java.io.FileOutputStream fos,
                     Graph graph,
                     java.lang.String title)
Writes the Knowledge Model and the graph to the given output stream.

Specified by:
write in interface CreekFormat
Parameters:
fos - output stream to write to
Returns:
true if successful, false if error


Created at IDI, NTNU by the Artificial Intelligence and Learning group