Interface OutputContext

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    ByteOutputContext, LocalOutputContext

    public interface OutputContext
    extends java.lang.AutoCloseable
    Represents the output context during the data transfer between two tasks.
    • Method Detail

      • newOutputStream

        TransferOutputStream newOutputStream()
                                      throws java.io.IOException
        Creates a new output stream to which the sender sends its data.
        Returns:
        output stream to which the sender sends its data.
        Throws:
        java.io.IOException - if a channel error occurs, or the context has already been closed.
      • close

        void close()
            throws java.io.IOException
        Closes this output context.
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException - if any exception has occurred. For more information, see ByteOutputContext.ByteOutputStream.close().