mascoptLib.io.graph
Class MGLWriter_1_2

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

Deprecated. Do not use this writer, see MGLWriter

public class MGLWriter_1_2
extends Object
implements WriterInterface

The Old MGL Writer. This writer is dedicated to MGL files with DTD 1.2.

Version:
Fri Feb 15 10:11:15 2002
Author:
bbongiov@bing.inria.fr
See Also:
MGLWriter

Constructor Summary
MGLWriter_1_2(OutputStream os)
          Deprecated. Creates a writer with a stream.
MGLWriter_1_2(String file)
          Deprecated. Creates a writer with a filename.
 
Method Summary
 void add(MascoptObject object)
          Deprecated. Add an object to write in the file.
 void write()
          Deprecated. 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

MGLWriter_1_2

public MGLWriter_1_2(String file)
              throws FileNotFoundException
Deprecated. 
Creates a writer with a filename.

Parameters:
file - the filename where to write.

MGLWriter_1_2

public MGLWriter_1_2(OutputStream os)
Deprecated. 
Creates a writer with a stream.

Parameters:
os - the stream where to write.
Method Detail

add

public void add(MascoptObject object)
Deprecated. 
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.

write

public void write()
Deprecated. 
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