@ThreadSafe public interface RDFParser
An RDF Parser.
RDFParsers
ServiceLoader
.
They are also expected to be *stateless*. All state should be maintained in a context
object
which won't outlive the parse(InputStream, RDFHandler)
call.Modifier and Type | Method and Description |
---|---|
RDFFormat |
format()
The format this parser can parse
|
default void |
parse(InputStream theStream,
RDFHandler theHandler)
Parse the content using the
default options . |
void |
parse(InputStream theStream,
RDFHandler theHandler,
Options theOptions)
Parse the content
|
default void parse(@Nonnull InputStream theStream, @Nonnull RDFHandler theHandler) throws IOException
default options
.theStream
- the stream to read fromtheHandler
- the handler to pass parse events toRDFHandlerException
- if there was an error while handling the statementIOException
- if there was an error while reading from the streamvoid parse(@Nonnull InputStream theStream, @Nonnull RDFHandler theHandler, @Nonnull Options theOptions) throws IOException
theStream
- the stream to read fromtheHandler
- the handler to pass parse events totheOptions
- the parsing optionsRDFHandlerException
- if there was an error while handling the statementIOException
- if there was an error while reading from the streamCopyright © 2010-2016 Stardog Union. All Rights Reserved.