Kactoos

kactoos-jvm / nnl.rocks.kactoos.io / InputStreamOf

InputStreamOf

class InputStreamOf : InputStream

An InputStream that encapsulates other sources of data.

There is no thread-safety guarantee.

Since 0.3

Constructors

Name Summary
<init> InputStreamOf(path: Path)
InputStreamOf(file: File)
InputStreamOf(url: URL)
InputStreamOf(uri: URI)
InputStreamOf(bytes: Bytes)
InputStreamOf(bytes: ByteArray)
InputStreamOf(text: Text, charset: Charset = Charsets.UTF_8)
InputStreamOf(text: Text, charset: CharSequence)
InputStreamOf(text: CharSequence)
InputStreamOf(text: CharSequence, charset: Charset)
InputStreamOf(text: CharSequence, charset: CharSequence)
InputStreamOf(rdr: Reader, charset: Charset = Charsets.UTF_8)
InputStreamOf(rdr: Reader, charset: CharSequence)
InputStreamOf(rdr: Reader, cset: Charset, max: Int)
InputStreamOf(rdr: Reader, max: Int)
InputStreamOf(rdr: Reader, charset: CharSequence, max: Int)
InputStreamOf(input: Input)
Ctor.InputStreamOf(source: KScalar<InputStream>)
An InputStream that encapsulates other sources of data.

Functions

Name Summary
available fun available(): Int
close fun close(): Unit
mark fun mark(limit: Int): Unit
markSupported fun markSupported(): Boolean
read fun read(): Int
fun read(buffer: ByteArray): Int
fun read(buffer: ByteArray, offset: Int, length: Int): Int
reset fun reset(): Unit
skip fun skip(num: Long): Long