org.eclipse.rdf4j.query.resultio

## Class AbstractQueryResultWriter

- java.lang.Object
- - org.eclipse.rdf4j.query.resultio.AbstractQueryResultWriter

- All Implemented Interfaces:
    QueryResultHandler, QueryResultWriter
  Direct Known Subclasses:
    BinaryQueryResultWriter, BooleanTextWriter, ConsoleQueryResultWriter, QueryResultWriterBase, SPARQLBooleanJSONWriter, SPARQLBooleanXMLWriter, SPARQLResultsCSVWriter, SPARQLResultsJSONWriter, SPARQLResultsTSVWriter, SPARQLResultsXMLWriter

      public abstract class AbstractQueryResultWriter
      extends Object
      implements QueryResultWriter

  Base class for `QueryResultWriter`s offering common functionality for query result writers.
  Author:
    Peter Ansell

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AbstractQueryResultWriter()` Default constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Collection<RioSetting<?>>` | `getSupportedSettings()`
    `WriterConfig` | `getWriterConfig()` Retrieves the current writer configuration as a single object.
    `void` | `setWriterConfig(WriterConfig config)` Sets all supplied writer configuration options.
    `protected boolean` | `xsdStringToPlainLiteral()`

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

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

    - ### Methods inherited from interface org.eclipse.rdf4j.query.resultio.QueryResultWriter

      `endHeader, getQueryResultFormat, handleNamespace, handleStylesheet, startDocument, startHeader`

    - ### Methods inherited from interface org.eclipse.rdf4j.query.QueryResultHandler

      `endQueryResult, handleBoolean, handleLinks, handleSolution, startQueryResult`

- - ### Constructor Detail

    - #### AbstractQueryResultWriter

          protected AbstractQueryResultWriter()

      Default constructor.

  - ### Method Detail

    - #### setWriterConfig

          public void setWriterConfig(WriterConfig config)

      Description copied from interface: `QueryResultWriter`
      Sets all supplied writer configuration options.
      Specified by:
        `setWriterConfig` in interface `QueryResultWriter`
      Parameters:
        `config` - a writer configuration object.

    - #### getWriterConfig

          public WriterConfig getWriterConfig()

      Description copied from interface: `QueryResultWriter`
      Retrieves the current writer configuration as a single object.
      Specified by:
        `getWriterConfig` in interface `QueryResultWriter`
      Returns:
        a writer configuration object representing the current configuration of the writer.

    - #### getSupportedSettings

          public Collection<RioSetting<?>> getSupportedSettings()

      Specified by:
        `getSupportedSettings` in interface `QueryResultWriter`
      Returns:
        A collection of `RioSetting`s that are supported by this `QueryResultWriter`.

    - #### xsdStringToPlainLiteral

          protected boolean xsdStringToPlainLiteral()

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