Package org.apache.sshd.common.io
Interface IoInputStream
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.nio.channels.Channel
,java.io.Closeable
,Closeable
- All Known Implementing Classes:
AbstractClientChannel.NullIoInputStream
,ChannelAsyncInputStream
public interface IoInputStream extends Closeable
Represents a stream that can be read asynchronously.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IoReadFuture
read(Buffer buffer)
NOTE: the buffer must not be touched until the returned read future is completed.-
Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
-
-
-
Method Detail
-
read
IoReadFuture read(Buffer buffer)
NOTE: the buffer must not be touched until the returned read future is completed.- Parameters:
buffer
- theBuffer
to use- Returns:
- The
IoReadFuture
for the operation
-
-