Interface TransferOutputStream

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

    public interface TransferOutputStream
    extends java.lang.AutoCloseable
    Represents the output stream to which the sender sends its data during the data transfer.
    • Method Detail

      • writeElement

        void writeElement​(java.lang.Object element,
                          Serializer serializer)
        Write an element into the output stream.
        Parameters:
        element - element to be sent
        serializer - serializer of element
      • close

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