mascoptLib.io.graph
Class GodWriter
java.lang.Object
mascoptLib.io.graph.GodWriter
- All Implemented Interfaces:
- WriterInterface
- public class GodWriter
- extends Object
- implements WriterInterface
Writes a God file.
GodWriter
public GodWriter(String file_graph,
String file_request)
throws FileNotFoundException
GodWriter
public GodWriter(OutputStream osg,
OutputStream osr)
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