mascoptLib.io.graph
Class GodWriter

java.lang.Object
  extended bymascoptLib.io.graph.GodWriter
All Implemented Interfaces:
WriterInterface

public class GodWriter
extends Object
implements WriterInterface

Writes a God file.


Constructor Summary
GodWriter(OutputStream osg, OutputStream osr)
           
GodWriter(String file_graph, String file_request)
           
 
Method Summary
 void add(Object object)
          Add an object to write in the file.
 void addAbstractEdgeSetRequest(ArcSet arcSet)
           
 void write()
          Write the file with all objects added in the Writer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GodWriter

public GodWriter(String file_graph,
                 String file_request)
          throws FileNotFoundException

GodWriter

public GodWriter(OutputStream osg,
                 OutputStream osr)
Method Detail

add

public void add(Object object)
Description copied from interface: WriterInterface
Add an object to write in the file. This method provides a simple way of write your objects in a file. When the Writer is created you just add your objects and it will be written when calling the write() function. The add may fail if the object you write is not recognize by the file format you use. It will be ignored.

Specified by:
add in interface WriterInterface
Parameters:
object - the object to write in the file.

addAbstractEdgeSetRequest

public void addAbstractEdgeSetRequest(ArcSet arcSet)

write

public void write()
Description copied from interface: WriterInterface
Write the file with all objects added in the Writer. This open, then write the file and close it. All recognized objects added with the add() method are written.

Specified by:
write in interface WriterInterface