Class SPARQLResultsJSONWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLResultsJSONWriterFactory
-
- All Implemented Interfaces:
TupleQueryResultWriterFactory
public class SPARQLResultsJSONWriterFactory extends Object implements TupleQueryResultWriterFactory
ATupleQueryResultWriterFactory
for writers of SPARQL/JSON query results.- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description SPARQLResultsJSONWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TupleQueryResultFormat
getTupleQueryResultFormat()
ReturnsTupleQueryResultFormat.JSON
.TupleQueryResultWriter
getWriter(OutputStream out)
Returns a new instance of SPARQLResultsJSONWriter.
-
-
-
Method Detail
-
getTupleQueryResultFormat
public TupleQueryResultFormat getTupleQueryResultFormat()
ReturnsTupleQueryResultFormat.JSON
.- Specified by:
getTupleQueryResultFormat
in interfaceTupleQueryResultWriterFactory
-
getWriter
public TupleQueryResultWriter getWriter(OutputStream out)
Returns a new instance of SPARQLResultsJSONWriter.- Specified by:
getWriter
in interfaceTupleQueryResultWriterFactory
- Parameters:
out
- The OutputStream to write the result to.
-
-