read

abstract override fun read(dst: ByteBuffer): Int

Reads a sequence of bytes from this channel into the given buffer.

Bytes are read starting at this channel's current position, and then the position is updated with the number of bytes actually read. Otherwise this method behaves exactly as specified in the ReadableByteChannel interface.

Throws

NonReadableChannelException

{@inheritDoc}