SectionInputStream

An implementation of InputStream that reads data from a ReadableSection. This class provides a way to read section data using the standard Java InputStream API.

Constructors

Link copied to clipboard
constructor(section: ReadableSection)

Functions

Link copied to clipboard
open override fun available(): Int

Returns an estimate of the number of bytes that can be read from this input stream without blocking.

Link copied to clipboard
open override fun close()
Link copied to clipboard
open fun mark(p0: Int)
Link copied to clipboard
Link copied to clipboard
open fun read(p0: ByteArray): Int

open override fun read(): Int

Reads a single byte from the section.

open override fun read(b: ByteArray, off: Int, len: Int): Int

Reads up to len bytes of data from the section into an array of bytes.

Link copied to clipboard
Link copied to clipboard
open fun readNBytes(p0: Int): ByteArray
open fun readNBytes(p0: ByteArray, p1: Int, p2: Int): Int
Link copied to clipboard
open fun reset()
Link copied to clipboard
open override fun skip(n: Long): Long

Skips over and discards n bytes of data from this input stream.

Link copied to clipboard
open fun skipNBytes(p0: Long)
Link copied to clipboard