Class SPARQLTSVResultParser

    • Constructor Detail

      • SPARQLTSVResultParser

        public SPARQLTSVResultParser()
    • Method Detail

      • parse

        public void parse​(@Nonnull
                          java.io.InputStream theStream,
                          @Nonnull
                          SelectQueryResultHandler theHandler,
                          @Nonnull
                          Options theOptions)
                   throws java.io.IOException
        Parse the results.
        Specified by:
        parse in interface QueryResultParser<SelectQueryResultHandler>
        Parameters:
        theStream - the stream to read from
        theHandler - the handler to pass parse events to
        theOptions - the parsing options
        Throws:
        java.io.IOException - if there was an error while reading from the stream
      • decodeString

        public static java.lang.String decodeString​(@Nonnull
                                                    java.lang.String theStr)
        Decodes an encoded Turtle string. Any \-escape sequences are substituted with their decoded value.
        Parameters:
        theStr - An encoded Turtle string.
        Returns:
        The unencoded string.
        Throws:
        java.lang.IllegalArgumentException - If the supplied string is not a correctly encoded Turtle string.