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, setTupleQueryResultHandlergetParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetTupleQueryResultHandlergetParserConfig, getQueryResultFormat, getSupportedSettings, parseQueryResult, setParserConfig, setQueryResultHandler, setValueFactorypublic TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultParsergetTupleQueryResultFormat in interface TupleQueryResultParserpublic void parse(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
TupleQueryResultParserparse in interface TupleQueryResultParserin - 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–2015 Aduna. All rights reserved.