public class RDFStreamBase extends Object implements RDFStream
| Constructor and Description |
|---|
RDFStreamBase() |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesRead() |
void |
close() |
long |
estimatedCount() |
Resource |
getContext()
Returns the default context associated with this stream or
null if there is no default context. |
String |
getName()
Returns the name of this stream.
|
boolean |
hasContext()
Returns
true either if this stream has a non-null context or the statements
generated by this stream has contexts. |
long |
length() |
void |
parse(com.stardog.stark.io.RDFHandler theHandler)
Parses the stream and passes the statements to the given handler.
|
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void parse(com.stardog.stark.io.RDFHandler theHandler)
throws IOException,
com.stardog.stark.io.RDFHandlerException
RDFStreamparse in interface RDFStreamIOExceptioncom.stardog.stark.io.RDFHandlerExceptionpublic boolean hasContext()
RDFStreamtrue either if this stream has a non-null context or the statements
generated by this stream has contexts.hasContext in interface RDFStreampublic String getName()
RDFStreampublic Resource getContext()
RDFStreamnull if there is no default context. Note
that, the statements that will be sent to the handler may not be using this context and the user of this stream
should make sure the context information is used correctly.getContext in interface RDFStreampublic long estimatedCount()
estimatedCount in interface RDFStreamCopyright © 2010-2016 Stardog Union. All Rights Reserved.