Package org.apache.sshd.common.io
Interface IoOutputStream
- All Superinterfaces:
AutoCloseable,Channel,Closeable,Closeable
- All Known Implementing Classes:
BufferedIoOutputStream,ChannelAsyncOutputStream,SimpleIoOutputStream
Represents a stream that can be written asynchronously.
-
Method Summary
Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
Method Details
-
writeBuffer
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
-