public class BooleanTextParser extends AbstractQueryResultParser implements BooleanQueryResultParser
handler, valueFactory
Constructor and Description |
---|
BooleanTextParser()
Creates a new parser for the plain text boolean query result format.
|
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)
Parses the data from the supplied InputStream.
|
void |
parseQueryResult(InputStream in)
Parse the query results out of the given
InputStream into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler) . |
getParseErrorListener, getParseLocationListener, getParserConfig, getSupportedSettings, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserConfig, getSupportedSettings, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
public BooleanTextParser()
public final BooleanQueryResultFormat getBooleanQueryResultFormat()
BooleanQueryResultParser
getBooleanQueryResultFormat
in interface BooleanQueryResultParser
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.public final QueryResultFormat getQueryResultFormat()
QueryResultParser
getQueryResultFormat
in interface QueryResultParser
QueryResultFormat
supported by this parser.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.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.