Package com.complexible.common.rdf.rio
Class RDFStreamBase
- java.lang.Object
-
- com.complexible.common.rdf.rio.RDFStreamBase
-
-
Constructor Summary
Constructors Constructor Description RDFStreamBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longbytesRead()voidclose()longestimatedCount()ResourcegetContext()Returns the default context associated with this stream ornullif there is no default context.java.lang.StringgetName()Returns the name of this stream.booleanhasContext()Returnstrueeither if this stream has a non-nullcontextor the statements generated by this stream has contexts.longlength()voidparse(RDFHandler theHandler)Parses the stream and passes the statements to the given handler.
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
parse
public void parse(RDFHandler theHandler) throws java.io.IOException, RDFHandlerException
Description copied from interface:RDFStreamParses the stream and passes the statements to the given handler.- Specified by:
parsein interfaceRDFStream- Throws:
java.io.IOExceptionRDFHandlerException
-
hasContext
public boolean hasContext()
Description copied from interface:RDFStreamReturnstrueeither if this stream has a non-nullcontextor the statements generated by this stream has contexts.- Specified by:
hasContextin interfaceRDFStream
-
getName
public java.lang.String getName()
Description copied from interface:RDFStreamReturns the name of this stream. If the stream is backed by a file this will return the file's name. Otherwise it might be an auto-generated name or some other (not necessarily unique) name.
-
getContext
public Resource getContext()
Description copied from interface:RDFStreamReturns the default context associated with this stream ornullif 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.- Specified by:
getContextin interfaceRDFStream
-
estimatedCount
public long estimatedCount()
- Specified by:
estimatedCountin interfaceRDFStream
-
-