Package com.complexible.common.rdf.rio
Class RDFStreamBase
java.lang.Object
com.complexible.common.rdf.rio.RDFStreamBase
- All Implemented Interfaces:
RDFStream,Closeable,AutoCloseable
- Author:
- Evren Sirin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the default context associated with this stream ornullif there is no default context.booleanReturnstrueeither if this stream has a non-nullcontextor the statements generated by this stream has contexts.voidparse(RDFHandler theHandler) Parses the stream and passes the statements to the given handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.complexible.common.rdf.rio.RDFStream
bytesRead, estimatedCount, getName, length
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RDFStreamBase
public RDFStreamBase()
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
parse
Description copied from interface:RDFStreamParses the stream and passes the statements to the given handler.- Specified by:
parsein interfaceRDFStream- Throws:
IOExceptionRDFHandlerException
-
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
-
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
-