public interface QueryResultParser
| Modifier and Type | Method and Description |
|---|---|
ParserConfig |
getParserConfig()
Retrieves the current parser configuration as a single object.
|
QueryResultFormat |
getQueryResultFormat()
Gets the query result format that this parser can parse.
|
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
parseQueryResult(InputStream in)
Parse the query results out of the given
InputStream into the
handler setup using setQueryResultHandler(QueryResultHandler). |
void |
setParserConfig(ParserConfig config)
Sets all supplied parser configuration options.
|
void |
setQueryResultHandler(QueryResultHandler handler)
Sets the
QueryResultHandler to be used when parsing query results
using parseQueryResult(InputStream). |
void |
setValueFactory(ValueFactory valueFactory)
Sets the ValueFactory that the parser will use to create Value objects for
the parsed query result.
|
QueryResultFormat getQueryResultFormat()
QueryResultFormat supported by this parser.void setQueryResultHandler(QueryResultHandler handler)
QueryResultHandler to be used when parsing query results
using parseQueryResult(InputStream).handler - The QueryResultHandler to use for handling results.void setValueFactory(ValueFactory valueFactory)
valueFactory - The value factory that the parser should use.void parseQueryResult(InputStream in) throws IOException, QueryResultParseException, QueryResultHandlerException
InputStream into the
handler setup using setQueryResultHandler(QueryResultHandler).in - The InputStream to parse the results from.IOException - If there is an exception from the InputStream.QueryResultParseException - If the query results are not parsable by this parser.QueryResultHandlerException - If the QueryResultHandler set in
setQueryResultHandler(QueryResultHandler) throws an
exception.void setParserConfig(ParserConfig config)
config - a parser configuration object.ParserConfig getParserConfig()
Collection<RioSetting<?>> getSupportedSettings()
RioSettings that are supported by this
QueryResultParser.Copyright © 2001-2013 Aduna. All Rights Reserved.