Class GraphMLReader
java.lang.Object
org.graffiti.plugin.io.AbstractInputSerializer
org.graffiti.plugins.ios.importers.graphml.GraphMLReader
- All Implemented Interfaces:
InputSerializer
,Serializer
public class GraphMLReader extends AbstractInputSerializer implements InputSerializer
This class implements the interface to invoke the reading of graphML files.
- Author:
- ruediger
-
Constructor Summary
Constructors Constructor Description GraphMLReader()
Constructs a newGraphMLReader
. -
Method Summary
Modifier and Type Method Description 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.void
read(InputStream in, Graph g)
Reads in a graph from the given input stream.void
read(Reader reader, Graph newGraph)
Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read, read, validFor
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.io.InputSerializer
read, read, read, validFor
-
Constructor Details
-
GraphMLReader
public GraphMLReader()Constructs a newGraphMLReader
.
-
-
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!
-
read
Description copied from class:AbstractInputSerializer
Reads in a graph from the given input stream.- Specified by:
read
in interfaceInputSerializer
- Specified by:
read
in classAbstractInputSerializer
- Parameters:
in
- The input stream to read the graph from.g
- The graph to add the newly read graph to.- Throws:
IOException
- If an IO error occurs.
-
read
- Specified by:
read
in interfaceInputSerializer
- Throws:
Exception
-