public abstract class AbstractSPARQLXMLParser extends AbstractQueryResultParser implements ErrorHandler
handler, valueFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractSPARQLXMLParser() |
protected |
AbstractSPARQLXMLParser(ValueFactory valueFactory) |
getParseErrorListener, getParseLocationListener, getParserConfig, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryResultFormat
protected AbstractSPARQLXMLParser()
protected AbstractSPARQLXMLParser(ValueFactory valueFactory)
public void parseQueryResult(InputStream in) throws IOException, QueryResultParseException, QueryResultHandlerException
QueryResultParser
InputStream
into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler)
.parseQueryResult
in interface QueryResultParser
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
QueryResultParser.setQueryResultHandler(QueryResultHandler)
throws an exception.protected boolean parseQueryResultInternal(InputStream in, boolean attemptParseBoolean, boolean attemptParseTuple) throws IOException, QueryResultParseException, QueryResultHandlerException
protected void reportWarning(String msg)
public Collection<RioSetting<?>> getCompulsoryXmlPropertySettings()
XMLReader.setProperty(String, Object)
Subclasses can override this to specify more supported settings.
RioSetting
s that indicate which properties will always be setup using
XMLReader.setProperty(String, Object)
.public Collection<RioSetting<Boolean>> getCompulsoryXmlFeatureSettings()
XMLReader.setFeature(String, boolean)
.
Subclasses can override this to specify more supported settings.
RioSetting
s that indicate which boolean settings will always be setup using
XMLReader.setFeature(String, boolean)
.public Collection<RioSetting<?>> getOptionalXmlPropertySettings()
AbstractQueryResultParser.getParserConfig()
, as XML parser
properties using XMLReader.setProperty(String, Object)
Subclasses can override this to specify more supported settings.
RioSetting
s that indicate which properties can be setup using
XMLReader.setProperty(String, Object)
.public Collection<RioSetting<Boolean>> getOptionalXmlFeatureSettings()
AbstractQueryResultParser.getParserConfig()
, as XML parser features
using XMLReader.setFeature(String, boolean)
.
Subclasses can override this to specify more supported settings.
RioSetting
s that indicate which boolean settings can be setup using
XMLReader.setFeature(String, boolean)
.public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface QueryResultParser
getSupportedSettings
in class AbstractQueryResultParser
RioSetting
s that are supported by this QueryResultParser.public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.