Interface Sink<O>

Type Parameters:
O - type of the value to serialise.
All Known Implementing Classes:
ByteSink, StringSink

public interface Sink<O>
Last step of a compilation chain: serialises the pipeline output to a file.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    pourInto(O output)
    Write output to the sink's pre-configured destination.
  • Method Details

    • pourInto

      void pourInto(O output) throws IOException
      Write output to the sink's pre-configured destination.
      Parameters:
      output - the value produced by the preceding transformation chain.
      Throws:
      IOException - if the destination cannot be written.