Package com.stardog.stark.io
Class CollectingRDFHandler<T>
- java.lang.Object
-
- com.stardog.stark.io.AbstractRDFHandler
-
- com.stardog.stark.io.CollectingRDFHandler<T>
-
- All Implemented Interfaces:
RDFHandler
public final class CollectingRDFHandler<T> extends AbstractRDFHandler
Simple
RDFHandler
that will collect thestatements
and return a result.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Constructor Summary
Constructors Constructor Description CollectingRDFHandler(java.util.function.Consumer<Statement> theConsumer, java.util.function.Supplier<T> theResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Statement theStmt)
Event for when a statement was encounteredT
result()
Return the result of the collected data-
Methods inherited from class com.stardog.stark.io.AbstractRDFHandler
end, namespace, start
-
-