Package com.stardog.stark.query.io.json
Class SPARQLJSONBooleanResultWriter
- java.lang.Object
-
- com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter<java.lang.Boolean>
-
- com.stardog.stark.query.io.json.SPARQLJSONBooleanResultWriter
-
- All Implemented Interfaces:
BooleanQueryResultHandler,BooleanQueryResultWriter,QueryResultWriter<java.lang.Boolean>,QueryResultHandler<java.lang.Boolean>
public final class SPARQLJSONBooleanResultWriter extends AbstractSPARQLJSONWriter<java.lang.Boolean> implements BooleanQueryResultWriter
Writerforboolean resultsin SPARQL/JSON.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSPARQLJSONBooleanResultWriter.SPARQLJSONBooleanResultWriterFactory
-
Field Summary
-
Fields inherited from class com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter
documentOpen, firstTupleWritten, headerComplete, headerOpen, jg, linksFound, mOptions, tupleVariablesFound
-
-
Constructor Summary
Constructors Constructor Description SPARQLJSONBooleanResultWriter(java.io.OutputStream theOutput, Options theOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResultFormatformat()Theformatthis writer will serialize output invoidhandle(java.lang.Boolean theResult)Handle a result to a query-
Methods inherited from class com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter
end, endHeader, links, namespace, start, startHeader, writeHeaderFields, writeValue
-
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.QueryResultWriter
end, links, namespace, start
-
-
-
-
Constructor Detail
-
SPARQLJSONBooleanResultWriter
public SPARQLJSONBooleanResultWriter(@Nonnull java.io.OutputStream theOutput, @Nonnull Options theOptions)
-
-
Method Detail
-
handle
public void handle(@Nonnull java.lang.Boolean theResult) throws ResultWritingFailedHandle a result to a query- Specified by:
handlein interfaceBooleanQueryResultHandler- Specified by:
handlein interfaceQueryResultHandler<java.lang.Boolean>- Specified by:
handlein interfaceQueryResultWriter<java.lang.Boolean>- Parameters:
theResult- the result- Throws:
ResultWritingFailed
-
format
@Nonnull public QueryResultFormat format()
Theformatthis writer will serialize output in- Specified by:
formatin interfaceQueryResultWriter<java.lang.Boolean>- Overrides:
formatin classAbstractSPARQLJSONWriter<java.lang.Boolean>- Returns:
- the format
-
-