org.graffiti.plugins.ios.exporters.graphml
Class GraphMLWriter

java.lang.Object
  extended by org.graffiti.plugin.AbstractParametrizable
      extended by org.graffiti.plugin.io.AbstractOutputSerializer
          extended by org.graffiti.plugins.ios.exporters.graphml.GraphMLWriter
All Implemented Interfaces:
OutputSerializer, Serializer, Parametrizable

public class GraphMLWriter
extends AbstractOutputSerializer

Class GraphMLWriter is the main class for writing a graph to a graphML file. This class uses the JAXP API to build a DOM tree which is then written to a specified OutputStream.

Author:
ruediger

Constructor Summary
GraphMLWriter()
          Constructs a new GraphMLWriter.
 
Method Summary
 String[] getExtensions()
          The file extensions the serializer can read or 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

GraphMLWriter

public GraphMLWriter()
Constructs a new GraphMLWriter.

Method Detail

getExtensions

public String[] getExtensions()
Description copied from interface: org.graffiti.plugin.io.Serializer
The file extensions the serializer can read or write.

Returns:
DOCUMENT ME!

write

public void write(OutputStream stream,
                  Graph g)
           throws IOException
Description copied from interface: org.graffiti.plugin.io.OutputSerializer
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

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