Kactoos

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

ReaderOf

class ReaderOf : Reader

A Reader that encapsulates other sources of data.

There is no thread-safety guarantee.

Since 0.3

Constructors

Name Summary
<init> ReaderOf(vararg chars: Char)
ReaderOf(chars: CharArray, charset: Charset)
ReaderOf(bytes: ByteArray)
ReaderOf(bytes: ByteArray, charset: Charset)
ReaderOf(bytes: ByteArray, charset: CharSequence)
ReaderOf(path: Path)
ReaderOf(file: File)
ReaderOf(url: URL)
ReaderOf(uri: URI)
ReaderOf(bytes: Bytes)
ReaderOf(text: Text)
ReaderOf(text: Text, charset: Charset)
ReaderOf(text: Text, charset: CharSequence)
ReaderOf(text: CharSequence)
ReaderOf(text: CharSequence, charset: Charset)
ReaderOf(text: CharSequence, charset: CharSequence)
ReaderOf(input: Input, charset: Charset = Charsets.UTF_8)
ReaderOf(input: Input, charset: CharSequence)
ReaderOf(input: Input, decoder: CharsetDecoder)
ReaderOf(stream: InputStream, charset: Charset = Charsets.UTF_8)
ReaderOf(stream: InputStream)
ReaderOf(stream: InputStream, charset: CharSequence)
ReaderOf(stream: InputStream, decoder: CharsetDecoder)ReaderOf(chars: CharArray, charset: CharSequence)
Ctor.ReaderOf(source: KScalar<Reader>)
A Reader that encapsulates other sources of data.

Functions

Name Summary
close fun close(): Unit
read fun read(cbuf: CharArray, off: Int, len: Int): Int