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, setValueFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueryResultFormatprotected AbstractSPARQLXMLParser()
protected AbstractSPARQLXMLParser(ValueFactory valueFactory)
public void parseQueryResult(InputStream in) throws IOException, QueryResultParseException, QueryResultHandlerException
QueryResultParserInputStream into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler).parseQueryResult in interface QueryResultParserin - 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.
RioSettings 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.
RioSettings 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.
RioSettings 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.
RioSettings that indicate which boolean settings can be setup using
XMLReader.setFeature(String, boolean).public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultParsergetSupportedSettings in class AbstractQueryResultParserRioSettings that are supported by this QueryResultParser.public void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.