Class XGMMLReader
java.lang.Object
org.graffiti.plugin.io.AbstractInputSerializer
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.xgmml.XGMMLReader
- All Implemented Interfaces:
InputSerializer
,Serializer
public class XGMMLReader extends AbstractInputSerializer
This class provides a reader for praphs stored in XGMML format.
- Version:
- $Revision$
- Author:
- Burkhard Sell
- See Also:
AbstractIOSerializer
-
Constructor Summary
Constructors Constructor Description XGMMLReader()
Constructs aXGMMReader
instance. -
Method Summary
Modifier and Type Method Description String[]
getExtensions()
Returns the extensions supported by this reader.String[]
getFileTypeDescriptions()
The file type descriptions of the files the serializer can read or write.Graph
read(InputStream in_Stream)
Reads a graph from the given input stream.void
read(InputStream in_Stream, Graph out_Graph)
Reads a graph from the given input stream.void
read(Reader in, Graph out_Graph)
Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read, validFor
-
Constructor Details
-
XGMMLReader
public XGMMLReader()Constructs aXGMMReader
instance.
-
-
Method Details
-
getExtensions
Returns the extensions supported by this reader.- Returns:
- the extensions supported by this reader.
-
getFileTypeDescriptions
Description copied from interface:Serializer
The file type descriptions of the files the serializer can read or write.- Returns:
- DOCUMENT ME!
-
read
Reads a graph from the given input stream.GraphElements
read are cloned when added to the graph. Consider using theread(InputStream)
method when you start with an empty graph.- Specified by:
read
in interfaceInputSerializer
- Specified by:
read
in classAbstractInputSerializer
- Parameters:
in_Stream
- theInputStream
to import the graph from.out_Graph
- the graph to add the imported graph to.- Throws:
ParserException
- if an error occurs while parsing the stream.
-
read
Reads a graph from the given input stream. This implementation returns an instance ofOptAdjListGraph
- Specified by:
read
in interfaceInputSerializer
- Overrides:
read
in classAbstractInputSerializer
- Parameters:
in
- The input stream to read the graph from.- Returns:
- The newly read graph (an instance of
OptAdjListGraph
). - Throws:
ParserException
- if an error occurs while parsing the stream.
-
read
- Throws:
Exception
-