org.eclipse.rdf4j.query.resultio.sparqljson

## Class SPARQLStarResultsJSONWriterFactory

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

- All Implemented Interfaces:
    TupleQueryResultWriterFactory
  Direct Known Subclasses:
    SPARQLStarResultsJSONWriterFactory

      public class SPARQLStarResultsJSONWriterFactory
      extends Object
      implements TupleQueryResultWriterFactory

  `TupleQueryResultWriterFactory` for creating instances of `SPARQLStarResultsJSONWriter`.
  Author:
    Pavel Mihaylov

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SPARQLStarResultsJSONWriterFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `TupleQueryResultFormat` | `getTupleQueryResultFormat()` Returns `TupleQueryResultFormat.JSON_STAR`.
    `TupleQueryResultWriter` | `getWriter(OutputStream out)` Returns a new instance of `SPARQLStarResultsJSONWriter`.

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

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

- - ### Constructor Detail

    - #### SPARQLStarResultsJSONWriterFactory

          public SPARQLStarResultsJSONWriterFactory()

  - ### Method Detail

    - #### getTupleQueryResultFormat

          public TupleQueryResultFormat getTupleQueryResultFormat()

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

    - #### getWriter

          public TupleQueryResultWriter getWriter(OutputStream out)

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

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