public class RDFHandlerWrapper extends Object implements RDFHandler
| Constructor and Description |
|---|
RDFHandlerWrapper(ModelFactory modelFactory,
RDFHandler... rdfHandlers)
Creates a new RDFHandlerWrapper that wraps the supplied RDF handler(s).
|
RDFHandlerWrapper(RDFHandler... rdfHandlers)
Creates a new RDFHandlerWrapper that wraps the supplied RDF handler(s).
|
| Modifier and Type | Method and Description |
|---|---|
void |
endRDF()
Signals the end of the RDF data.
|
ModelFactory |
getModelFactory() |
void |
handleComment(String comment)
Handles a comment.
|
void |
handleNamespace(String prefix,
String uri)
Handles a namespace declaration/definition.
|
void |
handleStatement(Statement st)
Handles a statement.
|
void |
startRDF()
Signals the start of the RDF data.
|
public RDFHandlerWrapper(RDFHandler... rdfHandlers)
rdfHandlers - One or more wrapped RDF handlers for this RDFHandlerWrapper, must not be
null.public RDFHandlerWrapper(ModelFactory modelFactory, RDFHandler... rdfHandlers)
modelFactory - a ModelFactory that can be used for creating new empty Models by the handler.rdfHandlers - One or more wrapped RDF handlers for this RDFHandlerWrapper, must not be
null.public void startRDF()
throws RDFHandlerException
RDFHandlerstartRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void endRDF()
throws RDFHandlerException
RDFHandlerendRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleNamespace(String prefix, String uri) throws RDFHandlerException
RDFHandlerhandleNamespace in interface RDFHandlerprefix - The prefix for the namespace, or an empty string in case of a default namespace.uri - The URI that the prefix maps to.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleStatement(Statement st) throws RDFHandlerException
RDFHandlerhandleStatement in interface RDFHandlerst - The statement.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleComment(String comment) throws RDFHandlerException
RDFHandlerhandleComment in interface RDFHandlercomment - The comment.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public ModelFactory getModelFactory()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.