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 Details

    • XGMMLReader

      public XGMMLReader()
      Constructs a XGMMReader instance.
  • Method Details

    • getExtensions

      public String[] getExtensions()
      Returns the extensions supported by this reader.
      Returns:
      the extensions supported by this reader.
    • getFileTypeDescriptions

      public String[] getFileTypeDescriptions()
      Description copied from interface: Serializer
      The file type descriptions of the files the serializer can read or write.
      Returns:
      DOCUMENT ME!
    • read

      public void read​(InputStream in_Stream, Graph out_Graph) throws ParserException
      Reads a graph from the given input stream. GraphElements read are cloned when added to the graph. Consider using the read(InputStream) method when you start with an empty graph.
      Specified by:
      read in interface InputSerializer
      Specified by:
      read in class AbstractInputSerializer
      Parameters:
      in_Stream - the InputStream 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

      public Graph read​(InputStream in_Stream) throws ParserException
      Reads a graph from the given input stream. This implementation returns an instance of OptAdjListGraph
      Specified by:
      read in interface InputSerializer
      Overrides:
      read in class AbstractInputSerializer
      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

      public void read​(Reader in, Graph out_Graph) throws Exception
      Throws:
      Exception