org.openrdf.rio.binary
Class BinaryRDFParser
java.lang.Object
org.openrdf.rio.helpers.RDFParserBase
org.openrdf.rio.binary.BinaryRDFParser
- All Implemented Interfaces:
- RDFParser
public class BinaryRDFParser
- extends RDFParserBase
- Author:
- Arjohn Kampman
|
Method Summary |
RDFFormat |
getRDFFormat()
Gets the RDF format that this parser can parse. |
void |
parse(InputStream in,
String baseURI)
Parses the data from the supplied InputStream, using the supplied baseURI
to resolve any relative URI references. |
void |
parse(Reader reader,
String baseURI)
Parses the data from the supplied Reader, using the supplied baseURI to
resolve any relative URI references. |
| Methods inherited from class org.openrdf.rio.helpers.RDFParserBase |
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, isValidLanguageTag, preserveBNodeIDs, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, reportWarning, resolveURI, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryRDFParser
public BinaryRDFParser()
getRDFFormat
public RDFFormat getRDFFormat()
- Description copied from interface:
RDFParser
- Gets the RDF format that this parser can parse.
parse
public void parse(Reader reader,
String baseURI)
throws IOException,
RDFParseException,
RDFHandlerException
- Description copied from interface:
RDFParser
- Parses the data from the supplied Reader, using the supplied baseURI 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.
RDFParseException - If the parser has found an unrecoverable parse error.
RDFHandlerException - If the configured statement handler has encountered an
unrecoverable error.
parse
public void parse(InputStream in,
String baseURI)
throws IOException,
RDFParseException,
RDFHandlerException
- Description copied from interface:
RDFParser
- Parses the data from the supplied InputStream, using the supplied baseURI
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.
RDFParseException - If the parser has found an unrecoverable parse error.
RDFHandlerException - If the configured statement handler has encountered an
unrecoverable error.
Copyright © 2001-2012 Aduna. All Rights Reserved.