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 aXGMMReaderinstance. -
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.Graphread(InputStream in_Stream)Reads a graph from the given input stream.voidread(InputStream in_Stream, Graph out_Graph)Reads a graph from the given input stream.voidread(Reader in, Graph out_Graph)Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read, validFor
-
Constructor Details
-
XGMMLReader
public XGMMLReader()Constructs aXGMMReaderinstance.
-
-
Method Details
-
getExtensions
Returns the extensions supported by this reader.- Returns:
- the extensions supported by this reader.
-
getFileTypeDescriptions
Description copied from interface:SerializerThe file type descriptions of the files the serializer can read or write.- Returns:
- DOCUMENT ME!
-
read
Reads a graph from the given input stream.GraphElementsread are cloned when added to the graph. Consider using theread(InputStream)method when you start with an empty graph.- Specified by:
readin interfaceInputSerializer- Specified by:
readin classAbstractInputSerializer- Parameters:
in_Stream- theInputStreamto 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:
readin interfaceInputSerializer- Overrides:
readin 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
-