public class SPARQLResultsXMLParser extends SPARQLXMLParserBase implements TupleQueryResultParser
handler, valueFactory| Constructor and Description |
|---|
SPARQLResultsXMLParser()
Creates a new parser for the SPARQL Query Results XML Format that will use
an instance of
ValueFactoryImpl to create Value objects. |
SPARQLResultsXMLParser(ValueFactory valueFactory)
Creates a new parser for the SPARQL Query Results XML Format that will use
the supplied ValueFactory to create Value objects.
|
| Modifier and Type | Method and Description |
|---|---|
QueryResultFormat |
getQueryResultFormat()
Gets the query result format that this parser can parse.
|
TupleQueryResultFormat |
getTupleQueryResultFormat()
Gets the query result format that this parser can parse.
|
void |
parse(InputStream in)
Parses the data from the supplied InputStream.
|
void |
setTupleQueryResultHandler(TupleQueryResultHandler handler)
Sets the TupleQueryResultHandler that will handle the parsed query result
data.
|
parseQueryResult, parseQueryResultInternalgetParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParserConfig, getSupportedSettings, parseQueryResult, setParserConfig, setQueryResultHandler, setValueFactorypublic SPARQLResultsXMLParser()
ValueFactoryImpl to create Value objects.public SPARQLResultsXMLParser(ValueFactory valueFactory)
public TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultParsergetTupleQueryResultFormat in interface TupleQueryResultParserpublic QueryResultFormat getQueryResultFormat()
QueryResultParsergetQueryResultFormat in interface QueryResultParserQueryResultFormat supported by this parser.public void setTupleQueryResultHandler(TupleQueryResultHandler handler)
TupleQueryResultParsersetTupleQueryResultHandler 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.Copyright © 2001–2015 Aduna. All rights reserved.