org.jrdf.parser
Interface Parser

All Known Subinterfaces:
ConfigurableParser, MoleculeParser
All Known Implementing Classes:
GraphRdfXmlParser, MoleculeParserImpl, NTriplesParser, RdfXmlParser

public interface Parser

The two parser methods for parsing RDF.

Version:
$Revision: 1804 $
Author:
Andrew Newman

Method Summary
 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.
 

Method Detail

parse

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

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

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

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.