public class SPARQLBooleanJSONParser extends SPARQLJSONParserBase implements BooleanQueryResultParser
BINDINGS, BNODE, BOOLEAN, DATATYPE, HEAD, LINK, LITERAL, RESULTS, TYPE, TYPED_LITERAL, URI, VALUE, VARS, XMLLANG
handler, valueFactory
Constructor and Description |
---|
SPARQLBooleanJSONParser()
Default constructor.
|
SPARQLBooleanJSONParser(ValueFactory valueFactory)
Construct a parser with a specific
ValueFactory . |
Modifier and Type | Method and Description |
---|---|
BooleanQueryResultFormat |
getBooleanQueryResultFormat()
Gets the query result format that this parser can parse.
|
QueryResultFormat |
getQueryResultFormat()
Gets the query result format that this parser can parse.
|
boolean |
parse(InputStream in)
Deprecated.
|
parseQueryResult, parseQueryResultInternal
getParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserConfig, getSupportedSettings, parseQueryResult, setParserConfig, setQueryResultHandler, setValueFactory
public SPARQLBooleanJSONParser()
public SPARQLBooleanJSONParser(ValueFactory valueFactory)
ValueFactory
.valueFactory
- The factory to use to create values.public QueryResultFormat getQueryResultFormat()
QueryResultParser
getQueryResultFormat
in interface QueryResultParser
QueryResultFormat
supported by this parser.public BooleanQueryResultFormat getBooleanQueryResultFormat()
BooleanQueryResultParser
getBooleanQueryResultFormat
in interface BooleanQueryResultParser
@Deprecated public boolean parse(InputStream in) throws IOException, QueryResultParseException
BooleanQueryResultParser
parse
in interface BooleanQueryResultParser
in
- 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.Copyright © 2001-2016 Aduna. All Rights Reserved.