org.graffiti.plugins.ios.importers.graphml.parser
Class GraphMLParser

java.lang.Object
  extended by org.graffiti.plugins.ios.importers.graphml.parser.GraphMLParser

public class GraphMLParser
extends Object

Class GraphMLParser is responsible for setting up the XML parsing environment. It instantiates an XML parser, sets the desired properties and attatches the event handlers to the parser.

Author:
ruediger

Constructor Summary
GraphMLParser()
          Constructs a new GraphMLParser.
 
Method Summary
 void parse(InputStream in, Graph g)
          Parses the given InputStream and adds the read in data to the given Graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphMLParser

public GraphMLParser()
Constructs a new GraphMLParser.

Method Detail

parse

public void parse(InputStream in,
                  Graph g)
           throws IOException
Parses the given InputStream and adds the read in data to the given Graph.

Parameters:
in - the InputStream from which to read.
g - the Graph to which to add the parsed data.
Throws:
IOException - if something fails during parsing.
GraphMLException - if something fails during parsing.


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