Interface IoInputStream

  • All Superinterfaces:
    java.lang.AutoCloseable, java.nio.channels.Channel, java.io.Closeable, Closeable
    All Known Implementing Classes:
    ChannelAsyncInputStream

    public interface IoInputStream
    extends Closeable
    Represents a stream that can be read asynchronously.
    • Method Detail

      • read

        IoReadFuture read​(Buffer buffer)
        NOTE: the buffer must not be touched until the returned read future is completed.
        Parameters:
        buffer - the Buffer to use
        Returns:
        The IoReadFuture for the operation