Package org.eclipse.rdf4j.query.resultio.sparqlxml

## Class SPARQLResultsXMLWriterFactory

- java.lang.Object
- - org.eclipse.rdf4j.query.resultio.sparqlxml.SPARQLResultsXMLWriterFactory

- All Implemented Interfaces:
    `TupleQueryResultWriterFactory`

      public class SPARQLResultsXMLWriterFactory
      extends Object
      implements TupleQueryResultWriterFactory

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

- - ### Constructor Summary

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

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### SPARQLResultsXMLWriterFactory

          public SPARQLResultsXMLWriterFactory()

  - ### Method Detail

    - #### getTupleQueryResultFormat

          public TupleQueryResultFormat getTupleQueryResultFormat()

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

    - #### getWriter

          public TupleQueryResultWriter getWriter​(OutputStream out)

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