org.eclipse.rdf4j.query.resultio.sparqljson

## Class SPARQLResultsJSONWriterFactory

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

- All Implemented Interfaces:
    TupleQueryResultWriterFactory

      public class SPARQLResultsJSONWriterFactory
      extends Object
      implements TupleQueryResultWriterFactory

  A `TupleQueryResultWriterFactory` for writers of SPARQL/JSON query results.
  Author:
    Arjohn Kampman

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SPARQLResultsJSONWriterFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `TupleQueryResultFormat` | `getTupleQueryResultFormat()` Returns `TupleQueryResultFormat.JSON`.
    `TupleQueryResultWriter` | `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

    - #### SPARQLResultsJSONWriterFactory

          public SPARQLResultsJSONWriterFactory()

  - ### Method Detail

    - #### getTupleQueryResultFormat

          public TupleQueryResultFormat getTupleQueryResultFormat()

      Returns `TupleQueryResultFormat.JSON`.
      Specified by:
        `getTupleQueryResultFormat` in interface `TupleQueryResultWriterFactory`

    - #### getWriter

          public TupleQueryResultWriter getWriter(OutputStream out)

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

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.