Package com.complexible.common.rdf.rio
Class RDFStreamBuilder
- java.lang.Object
-
- com.complexible.common.rdf.rio.RDFStreamBuilder
-
public final class RDFStreamBuilder extends java.lang.Object
- Since:
- 2.0
- Version:
- 6.0
- Author:
- Evren Sirin
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<RDFStream>
build()
RDFStreamBuilder
config(Options theConfig)
RDFStreamBuilder
context(Resource theContext)
RDFStreamBuilder
contexts(java.util.function.Function<java.nio.file.Path,Resource> theContexts)
RDFStreamBuilder
format(RDFFormat theFormat)
RDFStreamBuilder
ignoreFileErrors(boolean theIgnoreFileErrors)
void
parse(RDFHandler theHandler)
Parses all the streams with the given handler.<T extends java.util.Collection<Statement>>
TparseInto(T theCollection)
Parses the contents of all the streams into the given collection.RDFStreamBuilder
reporter(java.io.PrintStream theReporter)
RDFStreamBuilder
setCancellationPoint(CancellationPoint theCancellationPoint)
-
-
-
Method Detail
-
format
public RDFStreamBuilder format(RDFFormat theFormat)
-
config
public RDFStreamBuilder config(Options theConfig)
-
context
public RDFStreamBuilder context(Resource theContext)
-
contexts
public RDFStreamBuilder contexts(java.util.function.Function<java.nio.file.Path,Resource> theContexts)
-
reporter
public RDFStreamBuilder reporter(java.io.PrintStream theReporter)
-
ignoreFileErrors
public RDFStreamBuilder ignoreFileErrors(boolean theIgnoreFileErrors)
-
setCancellationPoint
public RDFStreamBuilder setCancellationPoint(CancellationPoint theCancellationPoint)
-
parse
public void parse(RDFHandler theHandler) throws InvalidRDF, RDFHandlerException, java.io.IOException
Parses all the streams with the given handler.- Throws:
InvalidRDF
RDFHandlerException
java.io.IOException
-
parseInto
public <T extends java.util.Collection<Statement>> T parseInto(T theCollection) throws InvalidRDF, RDFHandlerException, java.io.IOException
Parses the contents of all the streams into the given collection.- Throws:
InvalidRDF
RDFHandlerException
java.io.IOException
-
build
public java.util.List<RDFStream> build()
-
-