org.eclipse.rdf4j.common.io

## Interface Sink

- All Known Subinterfaces:
    ByteSink, CharSink
  All Known Implementing Classes:
    AbstractQueryResultWriter, AbstractRDFWriter, ArrangedWriter, BinaryQueryResultWriter, BinaryRDFWriter, BooleanTextWriter, ConsoleQueryResultWriter, ConsoleRDFWriter, JSONLDWriter, N3Writer, NDJSONLDWriter, NQuadsWriter, NTriplesWriter, QueryResultWriterBase, RDFJSONWriter, RDFWriterBase, RDFXMLPrettyWriter, RDFXMLWriter, SPARQLBooleanJSONWriter, SPARQLBooleanXMLWriter, SPARQLResultsCSVWriter, SPARQLResultsJSONWriter, SPARQLResultsTSVWriter, SPARQLResultsXMLWriter, SPARQLStarResultsJSONWriter, SPARQLStarResultsJSONWriter, SPARQLStarResultsTSVWriter, SPARQLStarResultsTSVWriter, SPARQLStarResultsXMLWriter, TriGStarWriter, TriGWriter, TriXWriter, TurtleStarWriter, TurtleWriter

      public interface Sink

  A Sink writes a data stream in a particular `FileFormat`.
  Since:
    3.5.0
  Author:
    Jeen Broekstra

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default boolean` | `acceptsFileFormat(FileFormat format)` Check if this Sink accepts the supplied `FileFormat`.
    `FileFormat` | `getFileFormat()` Get the `FileFormat` this sink uses.

- - ### Method Detail

    - #### getFileFormat

          FileFormat getFileFormat()

      Get the `FileFormat` this sink uses.
      Returns:
        a `FileFormat`. May not be `null`.

    - #### acceptsFileFormat

          default boolean acceptsFileFormat(FileFormat format)

      Check if this Sink accepts the supplied `FileFormat`.
      Parameters:
        `format` - the `FileFormat` to check.
      Returns:
        `true` if the sink accepts the supplied format, `false` otherwise.

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