Top Description Methods
org.apache.sshd.common.io

public Interface IoOutputStream

extends Closeable
Imports
java.io.IOException, org.apache.sshd.common.Closeable, org.apache.sshd.common.util.buffer.Buffer

Represents a stream that can be written asynchronously.
Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public IoWriteFuture

Returns:

An IoWriteFuture that can be used to check when the data has actually been written.
writeBuffer
(Buffer
the data to write

Note

the buffer must not be touched until the returned write future is completed.

buffer
)

Write the given buffer.

Inherited from org.apache.sshd.common.Closeable:
addCloseFutureListenerclosecloseclosegetMaxCloseWaitTimeisClosedisClosingisOpenremoveCloseFutureListener

Method Detail

writeBufferback to summary
public IoWriteFuture writeBuffer(Buffer buffer) throws IOException

Write the given buffer.

Parameters
buffer:Buffer

the data to write

Note

the buffer must not be touched until the returned write future is completed.

Returns:IoWriteFuture

An IoWriteFuture that can be used to check when the data has actually been written.

Exceptions
IOException:
if an error occurred when writing the data