Interface WriteCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WriteCallback
Callback interface used to write output to an OutputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Write the output to the given output stream.
  • Method Details

    • writeTo

      void writeTo(OutputStream output) throws IOException
      Write the output to the given output stream.

      This method should not close() the given output.

      Parameters:
      output - output stream
      Throws:
      IOException - if an I/O error occurs