Package com.stardog.stark.io
Class TransformingRDFHandler
- java.lang.Object
-
- com.stardog.stark.io.ForwardingRDFHandler
-
- com.stardog.stark.io.TransformingRDFHandler
-
- All Implemented Interfaces:
RDFHandler
public class TransformingRDFHandler extends ForwardingRDFHandler
RDFHandler
that will transform staements before passing them to a delegate
-
-
Constructor Summary
Constructors Constructor Description TransformingRDFHandler(RDFHandler theHandler, java.util.function.Function<Statement,Statement> theTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Statement theStmt)
Event for when a statement was encountered-
Methods inherited from class com.stardog.stark.io.ForwardingRDFHandler
end, namespace, start
-
-
-
-
Constructor Detail
-
TransformingRDFHandler
public TransformingRDFHandler(RDFHandler theHandler, java.util.function.Function<Statement,Statement> theTransformer)
-
-
Method Detail
-
handle
public void handle(@Nonnull Statement theStmt)
Event for when a statement was encountered- Specified by:
handle
in interfaceRDFHandler
- Overrides:
handle
in classForwardingRDFHandler
- Parameters:
theStmt
- the statement
-
-