Class SPARQLBooleanJSONWriter
java.lang.Object
org.eclipse.rdf4j.query.resultio.AbstractQueryResultWriter
org.eclipse.rdf4j.query.resultio.sparqljson.AbstractSPARQLJSONWriter
org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLBooleanJSONWriter
- All Implemented Interfaces:
CharSink, Sink, BooleanQueryResultHandler, QueryResultHandler, BooleanQueryResultWriter, QueryResultWriter
public class SPARQLBooleanJSONWriter
extends AbstractSPARQLJSONWriter
implements BooleanQueryResultWriter
A BooleanQueryResultWriter that writes query results in the
SPARQL Query Results JSON Format.
-
Field Summary
Fields inherited from class AbstractSPARQLJSONWriter
documentOpen, firstTupleWritten, headerComplete, headerOpen, jg, linksFound, tupleVariablesFound -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanQueryResultFormatGets the query result format that this writer uses.final BooleanQueryResultFormatGets the query result format that this writer uses.voidwrite(boolean value) Writes the specified boolean value.Methods inherited from class AbstractSPARQLJSONWriter
endDocument, endHeader, endQueryResult, getSupportedSettings, getWriter, handleBoolean, handleLinks, handleNamespace, handleSolutionImpl, handleStylesheet, startDocument, startHeader, startQueryResult, writeValueMethods inherited from class AbstractQueryResultWriter
getFileFormat, getWriterConfig, handleSolution, setWriterConfig, xsdStringToPlainLiteralMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QueryResultHandler
endQueryResult, handleBoolean, handleLinks, handleSolution, startQueryResultMethods inherited from interface QueryResultWriter
endHeader, getSupportedSettings, getWriterConfig, handleNamespace, handleStylesheet, setWriterConfig, startDocument, startHeaderMethods inherited from interface Sink
acceptsFileFormat, getFileFormat
-
Constructor Details
-
SPARQLBooleanJSONWriter
-
SPARQLBooleanJSONWriter
-
-
Method Details
-
getBooleanQueryResultFormat
Description copied from interface:BooleanQueryResultWriterGets the query result format that this writer uses.- Specified by:
getBooleanQueryResultFormatin interfaceBooleanQueryResultWriter
-
getQueryResultFormat
Description copied from interface:QueryResultWriterGets the query result format that this writer uses.- Specified by:
getQueryResultFormatin interfaceQueryResultWriter
-
write
Description copied from interface:BooleanQueryResultWriterWrites the specified boolean value.- Specified by:
writein interfaceBooleanQueryResultWriter- Throws:
IOException
-