org.graffiti.plugins.ios.gml.gmlWriter
Class GmlWriter

java.lang.Object
  extended by org.graffiti.plugin.AbstractParametrizable
      extended by org.graffiti.plugin.io.AbstractOutputSerializer
          extended by org.graffiti.plugins.ios.gml.gmlWriter.GmlWriter
All Implemented Interfaces:
OutputSerializer, Serializer, Parametrizable

public class GmlWriter
extends AbstractOutputSerializer

This class provides the main interface for writing files in the GML format.

Author:
ruediger

Constructor Summary
GmlWriter()
          Constructs a new GmlWriter.
 
Method Summary
 String[] getExtensions()
          Returns the file extensions the serializer can write.
 String getName()
          Returns the name (id) of this Parametrizable.
 void write(OutputStream stream, Graph g)
          Writes the contents of the given graph to a stream.
 
Methods inherited from class org.graffiti.plugin.io.AbstractOutputSerializer
write
 
Methods inherited from class org.graffiti.plugin.AbstractParametrizable
copyParameters, getDefaultParameters, getParameters, getUserParameters, saveUserParameters, saveUserParameters, setParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.graffiti.plugin.Parametrizable
getDefaultParameters, getParameters, setParameters
 

Constructor Detail

GmlWriter

public GmlWriter()
Constructs a new GmlWriter.

Method Detail

getExtensions

public String[] getExtensions()
Returns the file extensions the serializer can write.

Returns:
the file extensions the serializer can write.

write

public void write(OutputStream stream,
                  Graph g)
           throws IOException
Writes the contents of the given graph to a stream.

Parameters:
stream - The output stream to save the graph to.
g - The graph to save.
Throws:
IOException - if an error occurs while writing the graph.

getName

public String getName()
Description copied from interface: org.graffiti.plugin.Parametrizable
Returns the name (id) of this Parametrizable.

Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:01:25 PM CEST