Package org.apache.sshd.common.io
Interface IoOutputStream
-
- All Superinterfaces:
java.lang.AutoCloseable,java.nio.channels.Channel,java.io.Closeable,Closeable
- All Known Implementing Classes:
BufferedIoOutputStream,ChannelAsyncOutputStream,SimpleIoOutputStream
public interface IoOutputStream extends Closeable
Represents a stream that can be written asynchronously.
-
-
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 java.io.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:
java.io.IOException- if an error occurred when writing the data
-
-