public class SPARQLResultsTSVParser extends TupleQueryResultParserBase implements TupleQueryResultParser
handler, valueFactory
Constructor and Description |
---|
SPARQLResultsTSVParser() |
Modifier and Type | Method and Description |
---|---|
static String |
decodeString(String s)
Decodes an encoded Turtle string.
|
TupleQueryResultFormat |
getTupleQueryResultFormat()
Gets the query result format that this parser can parse.
|
void |
parse(InputStream in)
Parses the data from the supplied InputStream.
|
protected Literal |
parseLiteral(String literal)
Parses a literal, creates an object for it and returns this object.
|
getQueryResultFormat, parseQueryResult, setTupleQueryResultHandler
getParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setTupleQueryResultHandler
getParserConfig, getQueryResultFormat, getSupportedSettings, parseQueryResult, setParserConfig, setQueryResultHandler, setValueFactory
public TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultParser
getTupleQueryResultFormat
in interface TupleQueryResultParser
public void parse(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
TupleQueryResultParser
parse
in interface TupleQueryResultParser
in
- The InputStream from which to read the data.IOException
- If an I/O error occurred while data was read from the InputStream.QueryResultParseException
- If the parser has encountered an unrecoverable parse error.TupleQueryResultHandlerException
- If the configured query result handler has encountered an
unrecoverable error.protected Literal parseLiteral(String literal) throws IllegalArgumentException
literal
- The literal to parse.IllegalArgumentException
- If the supplied literal could not be parsed correctly.public static String decodeString(String s)
s
- An encoded Turtle string.IllegalArgumentException
- If the supplied string is not a correctly encoded Turtle
string.Copyright © 2001-2016 Aduna. All Rights Reserved.