Package org.graffiti.plugin.io
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 Summary
Constructors Constructor Description AbstractOutputSerializer()
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.io.OutputSerializer
write
Methods inherited from interface org.graffiti.plugin.io.Serializer
getExtensions, getFileTypeDescriptions
-
Constructor Details
-
AbstractOutputSerializer
public AbstractOutputSerializer()
-
-
Method Details
-
write
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
As standard, an output serializer will be valid writer for any type of graph- Specified by:
validFor
in interfaceOutputSerializer
- Parameters:
g
- The graph to be serialized- Returns:
-