BoundedSeekableByteChannelInputStream

InputStream that delegates requests to the underlying SeekableByteChannel, making sure that only bytes from a certain range can be read.

Since

1.21

Constructors

Link copied to clipboard
constructor(start: Long, remaining: Long, channel: SeekableByteChannel)
Create a bounded stream on the underlying SeekableByteChannel

Functions

Link copied to clipboard
open fun available(): Int
Link copied to clipboard
open fun close()
Link copied to clipboard
open fun mark(readlimit: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun read(): Int
open fun read(): Int
open fun read(b: Array<Byte>, off: Int, len: Int): Int
Link copied to clipboard
open fun readAllBytes(): Array<Byte>
Link copied to clipboard
open fun readNBytes(len: Int): Array<Byte>
open fun readNBytes(b: Array<Byte>, off: Int, len: Int): Int
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun skip(n: Long): Long
Link copied to clipboard
open fun skipNBytes(n: Long)
Link copied to clipboard
open fun transferTo(out: OutputStream): Long