Interface RDFParser

    • Method Detail

      • format

        @Nonnull
        RDFFormat format()
        The format this parser can parse
        Returns:
        the format
      • parse

        default void parse​(@Nonnull
                           java.io.InputStream theStream,
                           @Nonnull
                           RDFHandler theHandler)
                    throws java.io.IOException
        Parse the content using the default options.
        Parameters:
        theStream - the stream to read from
        theHandler - the handler to pass parse events to
        Throws:
        RDFHandlerException - if there was an error while handling the statement
        java.io.IOException - if there was an error while reading from the stream
      • parse

        void parse​(@Nonnull
                   java.io.InputStream theStream,
                   @Nonnull
                   RDFHandler theHandler,
                   @Nonnull
                   Options theOptions)
            throws java.io.IOException
        Parse the content
        Parameters:
        theStream - the stream to read from
        theHandler - the handler to pass parse events to
        theOptions - the parsing options
        Throws:
        RDFHandlerException - if there was an error while handling the statement
        java.io.IOException - if there was an error while reading from the stream