Class GMLWriter
java.lang.Object
org.graffiti.plugins.ios.exporters.gml.GMLWriter
- All Implemented Interfaces:
OutputSerializer,Serializer,SupportsWriterOutput
- Direct Known Subclasses:
GMLgzWriter
public class GMLWriter extends Object implements OutputSerializer, SupportsWriterOutput
Provides a GML writer. This writer does not yet support all GML features yet.
See http://infosun.fmi.uni-passau.de/Graphlet/GML/ for more details
- Version:
- $Revision: 1.32 $
-
Constructor Summary
Constructors Constructor Description GMLWriter()Constructs a new GML writer. -
Method Summary
Modifier and Type Method Description static StringdecodeBadCharacters(Object val)static StringencodeBadCharacters(Object val)static StringgetArrowShapeClassNameFromGMLarrowStyle(String arrowStyle)String[]getExtensions()The file extensions the serializer can read or write.String[]getFileTypeDescriptions()The file type descriptions of the files the serializer can read or write.static StringgetValues(float[] da, String space)booleanvalidFor(Graph g)voidwrite(OutputStream o, Graph g)Writes the contents of the given graph to a stream.voidwrite(Writer o, Graph g)
-
Constructor Details
-
GMLWriter
public GMLWriter()Constructs a new GML writer.
-
-
Method Details
-
getExtensions
Description copied from interface:SerializerThe file extensions the serializer can read or write.- Specified by:
getExtensionsin interfaceSerializer- Returns:
- DOCUMENT ME!
-
getFileTypeDescriptions
Description copied from interface:SerializerThe file type descriptions of the files the serializer can read or write.- Specified by:
getFileTypeDescriptionsin interfaceSerializer- Returns:
- DOCUMENT ME!
-
write
- Specified by:
writein interfaceSupportsWriterOutput- Throws:
IOException
-
validFor
- Specified by:
validForin interfaceOutputSerializer- Parameters:
g- The graph to be serialized- Returns:
-
write
Description copied from interface:OutputSerializerWrites the contents of the given graph to a stream.- Specified by:
writein interfaceOutputSerializer- Parameters:
o- The output stream to save the graph to.g- The graph to save.- Throws:
IOException
-
encodeBadCharacters
-
decodeBadCharacters
-
getValues
-
getArrowShapeClassNameFromGMLarrowStyle
-