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 String
decodeBadCharacters(Object val)
static String
encodeBadCharacters(Object val)
static String
getArrowShapeClassNameFromGMLarrowStyle(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 String
getValues(float[] da, String space)
boolean
validFor(Graph g)
void
write(OutputStream o, Graph g)
Writes the contents of the given graph to a stream.void
write(Writer o, Graph g)
-
Constructor Details
-
GMLWriter
public GMLWriter()Constructs a new GML writer.
-
-
Method Details
-
getExtensions
Description copied from interface:Serializer
The file extensions the serializer can read or write.- Specified by:
getExtensions
in interfaceSerializer
- Returns:
- DOCUMENT ME!
-
getFileTypeDescriptions
Description copied from interface:Serializer
The file type descriptions of the files the serializer can read or write.- Specified by:
getFileTypeDescriptions
in interfaceSerializer
- Returns:
- DOCUMENT ME!
-
write
- Specified by:
write
in interfaceSupportsWriterOutput
- Throws:
IOException
-
validFor
- Specified by:
validFor
in interfaceOutputSerializer
- Parameters:
g
- The graph to be serialized- Returns:
-
write
Description copied from interface:OutputSerializer
Writes the contents of the given graph to a stream.- Specified by:
write
in interfaceOutputSerializer
- Parameters:
o
- The output stream to save the graph to.g
- The graph to save.- Throws:
IOException
-
encodeBadCharacters
-
decodeBadCharacters
-
getValues
-
getArrowShapeClassNameFromGMLarrowStyle
-