Package com.stardog.stark.query.io.text
Class TextBooleanQueryResultParser
- java.lang.Object
-
- com.stardog.stark.query.io.text.TextBooleanQueryResultParser
-
- All Implemented Interfaces:
BooleanQueryResultParser
,QueryResultParser<BooleanQueryResultHandler>
public final class TextBooleanQueryResultParser extends java.lang.Object implements BooleanQueryResultParser
QueryResult
parser
for text-based results- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Constructor Summary
Constructors Constructor Description TextBooleanQueryResultParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResultFormat
format()
The format this parser can parsevoid
parse(java.io.InputStream theStream, BooleanQueryResultHandler theHandler, Options theOptions)
Parse the results.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.stardog.stark.query.io.QueryResultParser
parse
-
-
-
-
Method Detail
-
format
@Nonnull public QueryResultFormat format()
The format this parser can parse- Specified by:
format
in interfaceQueryResultParser<BooleanQueryResultHandler>
- Returns:
- the format
-
parse
public void parse(@Nonnull java.io.InputStream theStream, @Nonnull BooleanQueryResultHandler theHandler, @Nonnull Options theOptions) throws java.io.IOException
Parse the results.- Specified by:
parse
in interfaceQueryResultParser<BooleanQueryResultHandler>
- Parameters:
theStream
- the stream to read fromtheHandler
- the handler to pass parse events totheOptions
- the parsing options- Throws:
java.io.IOException
- if there was an error while reading from the stream
-
-