Package org.apache.sshd.common.io
Interface IoOutputStream
-
- All Superinterfaces:
AutoCloseable,Channel,Closeable,Closeable
public interface IoOutputStream extends Closeable
Represents a stream that can be written asynchronously.- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IoWriteFuturewriteBuffer(Buffer buffer)Write the given buffer.-
Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
-
-
-
Method Detail
-
writeBuffer
IoWriteFuture writeBuffer(Buffer buffer) throws IOException
Write the given buffer.- Parameters:
buffer- the data to write. NOTE: the buffer must not be touched until the returned write future is completed.- Returns:
- An
IoWriteFuturethat can be used to check when the data has actually been written. - Throws:
IOException- if an error occurred when writing the data
-
-