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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this output stream.void
writeElement(java.lang.Object element, Serializer serializer)
Write an element into the output stream.
-
-
-
Method Detail
-
writeElement
void writeElement(java.lang.Object element, Serializer serializer)
Write an element into the output stream.- Parameters:
element
- element to be sentserializer
- serializer ofelement
-
close
void close() throws java.io.IOException
Closes this output stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
- if any exception has occurred. For more information, seeByteOutputContext.close()
.
-
-