Class AbstractOutputSerializer

java.lang.Object
org.graffiti.plugin.io.AbstractOutputSerializer
All Implemented Interfaces:
OutputSerializer, Serializer
Direct Known Subclasses:
DOTSerializer, GraphMLWriter, PajekWriter, PNTSerializer, PovrayWriter, SBML_XML_Writer, SIFWriter, XWGSerializer

public abstract class AbstractOutputSerializer
extends Object
implements OutputSerializer
Provides additional methods to write a graph object.
Version:
$Revision: 1.4 $
  • Constructor Details

    • AbstractOutputSerializer

      public AbstractOutputSerializer()
  • Method Details

    • write

      public void write​(Graph g, String filename) throws IOException
      Writes the contents of the given graph to a file.
      Parameters:
      g - The graph to save.
      filename - The name of the file to save the graph to.
      Throws:
      IOException - If an IO error occurs.
    • validFor

      public boolean validFor​(Graph g)
      As standard, an output serializer will be valid writer for any type of graph
      Specified by:
      validFor in interface OutputSerializer
      Parameters:
      g - The graph to be serialized
      Returns: