Class RDFStreamBase

java.lang.Object
com.complexible.common.rdf.rio.RDFStreamBase
All Implemented Interfaces:
RDFStream, Closeable, AutoCloseable

public abstract class RDFStreamBase extends Object implements RDFStream
Author:
Evren Sirin
  • Field Details

  • Constructor Details

    • RDFStreamBase

      public RDFStreamBase()
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • parse

      public void parse(RDFHandler theHandler) throws IOException, RDFHandlerException
      Description copied from interface: RDFStream
      Parses the stream and passes the statements to the given handler.
      Specified by:
      parse in interface RDFStream
      Throws:
      IOException
      RDFHandlerException
    • getContext

      public Resource getContext()
      Description copied from interface: RDFStream
      Returns the default context associated with this stream or null 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.
      Specified by:
      getContext in interface RDFStream
    • hasContext

      public boolean hasContext()
      Description copied from interface: RDFStream
      Returns true either if this stream has a non-null context or the statements generated by this stream has contexts.
      Specified by:
      hasContext in interface RDFStream