MarkEnforcingInputStream

open class MarkEnforcingInputStream : FilterInputStream

Prevents InputStreams from overflowing their buffer by reading data past their read limit.

Constructors

Link copied to clipboard
open fun MarkEnforcingInputStream(in: InputStream)

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
open fun markSupported(): Boolean
Link copied to clipboard
open fun nullInputStream(): InputStream
Link copied to clipboard
open fun read(): Int
open fun read(    buffer: Array<Byte>,     byteOffset: Int,     byteCount: 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(byteCount: Long): Long
Link copied to clipboard
open fun transferTo(out: OutputStream): Long