org.graffiti.plugins.ios.gml.gmlReader.parser
Class GmlParser

java.lang.Object
  extended by org.graffiti.plugins.ios.gml.gmlReader.parser.GmlParser

public class GmlParser
extends Object

This class provides a public interface for accessing and running the parser.

Author:
ruediger

Constructor Summary
GmlParser()
          Constructs a new parser.
 
Method Summary
 Gml parse()
          Parse from stdin.
 Gml parse(InputStream is)
          Runs the parser on the specified InputStream and returns the read in GML declarations.
 Gml parse(String filename)
          Runs the parser on a file specified by its name.
 Gml[] parse(String[] files)
          Runs the parser on a list of files specified by their file name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmlParser

public GmlParser()
Constructs a new parser.

Method Detail

parse

public Gml[] parse(String[] files)
            throws Exception
Runs the parser on a list of files specified by their file name.

Parameters:
files - the filenames which to parse.
Returns:
the read in Gml graphs.
Throws:
Exception - what? how to handle?

parse

public Gml parse(InputStream is)
          throws Exception
Runs the parser on the specified InputStream and returns the read in GML declarations.

Parameters:
is - the InputStream from which to parse.
Returns:
the read in Gml graph.
Throws:
Exception - any exception that occurred during parsing.

parse

public Gml parse(String filename)
          throws Exception
Runs the parser on a file specified by its name.

Parameters:
filename - the name of the file to be parsed.
Returns:
the read in Gml object.
Throws:
Exception - what? how to handle?

parse

public Gml parse()
          throws Exception
Parse from stdin.

Returns:
the read in Gml graph.
Throws:
Exception - any exception that occurred during parsing.


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