|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.rio.helpers.RDFHandlerWrapper
public class RDFHandlerWrapper
Convenience base class for RDF handlers that wrap another RDF handler. This class provides default methods that forward method calls to the wrapped RDF handler.
| Constructor Summary | |
|---|---|
RDFHandlerWrapper(RDFHandler rdfHandler)
Creates a new RDFHandlerWrapper that wraps the supplied RDF handler. |
|
| Method Summary | |
|---|---|
void |
endRDF()
Signals the end of the RDF data. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDFHandlerWrapper(RDFHandler rdfHandler)
rdfHandler - The wrapped RDF handler for this RDFHandlerWrapper,
must not be null.| Method Detail |
|---|
public void startRDF()
throws RDFHandlerException
RDFHandler
startRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.
public void endRDF()
throws RDFHandlerException
RDFHandler
endRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.
public void handleNamespace(String prefix,
String uri)
throws RDFHandlerException
RDFHandler
handleNamespace 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
RDFHandler
handleStatement in interface RDFHandlerst - The statement.
RDFHandlerException - If the RDF handler has encountered an unrecoverable error.
public void handleComment(String comment)
throws RDFHandlerException
RDFHandler
handleComment in interface RDFHandlercomment - The comment.
RDFHandlerException - If the RDF handler has encountered an unrecoverable error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||