Interface Callback.Output

  • Enclosing class:
    Callback
    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 static interface Callback.Output
    Use this if you need an output stream callback.
    Since:
    2.3
    Author:
    Bauke Scholtz
    • Method Detail

      • writeTo

        void writeTo​(OutputStream output)
              throws IOException
        This method should be invoked by the method where you're passing this callback instance to.
        Parameters:
        output - The callback output stream to write to.
        Throws:
        IOException - When given output stream cannot be written.