FilterInputStream2

A FilterInputStream2 contains another InputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.

Note: unlike FilterInputStream this class delegates every method by default. This means to transform read calls, you need to override multiple methods. On the other hand, it is less trappy: a simple implementation that just overrides close will not force bytes to be read one-at-a-time.

Constructors

Link copied to clipboard
constructor(delegate: InputStream)

Functions

Link copied to clipboard
open override fun available(): Int
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun mark(readlimit: Int)
Link copied to clipboard
open override fun markSupported(): Boolean
Link copied to clipboard
open override fun read(): Int
open override fun read(b: ByteArray): Int
open override fun read(b: ByteArray, off: Int, len: Int): Int
Link copied to clipboard
open fun readAllBytes(): ByteArray?
Link copied to clipboard
open fun readNBytes(len: Int): ByteArray?
open fun readNBytes(b: ByteArray, off: Int, len: Int): Int
Link copied to clipboard
open override fun reset()
Link copied to clipboard
open override fun skip(n: Long): Long
Link copied to clipboard
open fun skipNBytes(n: Long)
Link copied to clipboard
open fun transferTo(out: OutputStream): Long