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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this output context.TransferOutputStream
newOutputStream()
Creates a new output stream to which the sender sends its data.
-
-
-
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 interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
- if any exception has occurred. For more information, seeByteOutputContext.ByteOutputStream.close()
.
-
-