org.graffiti.plugins.ios.gml.gmlReader
Class GmlReader

java.lang.Object
  extended by org.graffiti.plugin.AbstractParametrizable
      extended by org.graffiti.plugin.io.AbstractInputSerializer
          extended by org.graffiti.plugins.ios.gml.gmlReader.GmlReader
All Implemented Interfaces:
InputSerializer, Serializer, Parametrizable

public class GmlReader
extends AbstractInputSerializer

Class GmlReader provides the interface for reading in graphs specified in the GML format. Graphs can be read in from an arbitrary InputStream.

Author:
ruediger

Constructor Summary
GmlReader()
          Constructs a new GmlReader.
 
Method Summary
 String[] getExtensions()
          Returns the supported extensions.
 String getName()
          Returns the name (id) of this Parametrizable.
 void read(InputStream in, Graph graph)
          Reads the graph specified by in and adds it to g.
 
Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read, read
 
Methods inherited from class org.graffiti.plugin.AbstractParametrizable
copyParameters, getDefaultParameters, getParameters, getUserParameters, saveUserParameters, saveUserParameters, setParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.graffiti.plugin.Parametrizable
getDefaultParameters, getParameters, setParameters
 

Constructor Detail

GmlReader

public GmlReader()
Constructs a new GmlReader.

Method Detail

getExtensions

public String[] getExtensions()
Returns the supported extensions.

Returns:
the supported extensions.

read

public void read(InputStream in,
                 Graph graph)
          throws IOException
Reads the graph specified by in and adds it to g.

Specified by:
read in interface InputSerializer
Specified by:
read in class AbstractInputSerializer
Parameters:
in - the InputStream from which to read the graph.
graph - the Graph to which the read in graph shall be added.
Throws:
IOException - if something fails while reading in the graph.

getName

public String getName()
Description copied from interface: org.graffiti.plugin.Parametrizable
Returns the name (id) of this Parametrizable.

Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:01:25 PM CEST