org.jrdf.graph.global.molecule
Class MoleculeParserImpl

java.lang.Object
  extended by org.jrdf.graph.global.molecule.MoleculeParserImpl
All Implemented Interfaces:
MoleculeParser, Parser

public class MoleculeParserImpl
extends Object
implements MoleculeParser

Implementation of MoleculeParser.

Version:
$Revision: 1317 $
Author:
Imran Khan (not the cricketer)

Constructor Summary
MoleculeParserImpl(Graph newGraph)
           
 
Method Summary
 GlobalizedGraph getGlobalizedGraph()
           
protected  GlobalizedGraph getNewGlobalizedGraph()
           
 void parse(InputStream in, String baseURI)
          Parses the data from the supplied InputStream, using the supplied BASE_URI to resolve any relative URI references.
 void parse(Reader reader, String baseURI)
          Parses the data from the supplied Reader, using the supplied BASE_URI to resolve any relative URI references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoleculeParserImpl

public MoleculeParserImpl(Graph newGraph)
Method Detail

parse

public void parse(InputStream in,
                  String baseURI)
           throws IOException,
                  ParseException,
                  StatementHandlerException
Description copied from interface: Parser
Parses the data from the supplied InputStream, using the supplied BASE_URI to resolve any relative URI references.

Specified by:
parse in interface Parser
Parameters:
in - The InputStream from which to read the data.
baseURI - The URI associated with the data in the InputStream.
Throws:
IOException - If an I/O error occurred while data was read from the InputStream.
ParseException - If the parser has found an unrecoverable parse error.
StatementHandlerException - If the configured statement handler has encountered an unrecoverable error.

parse

public void parse(Reader reader,
                  String baseURI)
           throws IOException,
                  ParseException,
                  StatementHandlerException
Description copied from interface: Parser
Parses the data from the supplied Reader, using the supplied BASE_URI to resolve any relative URI references.

Specified by:
parse in interface Parser
Parameters:
reader - The Reader from which to read the data.
baseURI - The URI associated with the data in the InputStream.
Throws:
IOException - If an I/O error occurred while data was read from the InputStream.
ParseException - If the parser has found an unrecoverable parse error.
StatementHandlerException - If the configured statement handler has encountered an unrecoverable error.

getGlobalizedGraph

public GlobalizedGraph getGlobalizedGraph()
                                   throws GraphException
Specified by:
getGlobalizedGraph in interface MoleculeParser
Throws:
GraphException

getNewGlobalizedGraph

protected GlobalizedGraph getNewGlobalizedGraph()