AsyncReadableByteChannel

Similar to a mix between java.nio.channels.AsynchronousFileChannel and java.nio.channels.AsynchronousByteChannel, allowing random access positioning, but internally keeping track to the current position. One should assume that at most one read operation can be submitted at a time (although this constraint might be lifted in the future).

Similar to a mix between java.nio.channels.AsynchronousFileChannel and java.nio.channels.AsynchronousByteChannel, allowing random access positioning, but internally keeping track to the current position. One should assume that at most one read operation can be submitted at a time (although this constraint might be lifted in the future).

class Object
trait Matchable
class Any

Value members

Abstract methods

def read(dst: ByteBuffer): Future[Int]
def remaining: Long
def size: Long
def skip(len: Long): Unit

Advances the position by len bytes. Note that negative numbers are allowed, essentially moving the position backwards.

Advances the position by len bytes. Note that negative numbers are allowed, essentially moving the position backwards.

Inherited methods

def close(): Future[Unit]

It is allowed to call this method even if there is an ongoing previous closure process. In such case the future of the ongoing closure is returned.

It is allowed to call this method even if there is an ongoing previous closure process. In such case the future of the ongoing closure is returned.

Inherited from
AsyncChannel
def isOpen: Boolean

When a file is opened, this reports true. As soon as close is called, this method reports false, even if the asynchronous closure is still going on. At this point no further reads or writes should be made.

When a file is opened, this reports true. As soon as close is called, this method reports false, even if the asynchronous closure is still going on. At this point no further reads or writes should be made.

Inherited from
AsyncChannel

Abstract fields

var position: Long