Package org.eclipse.rdf4j.query.resultio.sparqljson

## Class SPARQLBooleanJSONWriterFactory

- java.lang.Object
- - org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLBooleanJSONWriterFactory

- All Implemented Interfaces:
    `BooleanQueryResultWriterFactory`

      public class SPARQLBooleanJSONWriterFactory
      extends Object
      implements BooleanQueryResultWriterFactory

  A `BooleanQueryResultWriterFactory` for writers of SPARQL/JSON query boolean results.
  Author:
    Peter Ansell

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SPARQLBooleanJSONWriterFactory()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `BooleanQueryResultFormat` | `getBooleanQueryResultFormat()` | Returns `BooleanQueryResultFormat.JSON`.
    `BooleanQueryResultWriter` | `getWriter​(OutputStream out)` | Returns a new instance of SPARQLResultsJSONWriter.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SPARQLBooleanJSONWriterFactory

          public SPARQLBooleanJSONWriterFactory()

  - ### Method Detail

    - #### getBooleanQueryResultFormat

          public BooleanQueryResultFormat getBooleanQueryResultFormat()

      Returns `BooleanQueryResultFormat.JSON`.
      Specified by:
        `getBooleanQueryResultFormat` in interface `BooleanQueryResultWriterFactory`

    - #### getWriter

          public BooleanQueryResultWriter getWriter​(OutputStream out)

      Returns a new instance of SPARQLResultsJSONWriter.
      Specified by:
        `getWriter` in interface `BooleanQueryResultWriterFactory`
      Parameters:
        `out` - The OutputStream to write the result to.