Kactoos

kactoos-jvm / nnl.rocks.kactoos.io / ReaderOf / <init>

<init>

ReaderOf(vararg chars: Char)

Parameters

chars - CharsReaderOf(chars: CharArray, charset: Charset)

Parameters

chars - Chars

charset - CharsetReaderOf(chars: CharArray, charset: CharSequence)

Ctor.

Parameters

chars - Chars

charset - CharsetReaderOf(bytes: ByteArray)

Parameters

bytes - BytesReaderOf(bytes: ByteArray, charset: Charset) ReaderOf(bytes: ByteArray, charset: CharSequence)

Parameters

bytes - Bytes

charset - CharsetReaderOf(path: Path)

Parameters

path - The pathReaderOf(file: File)

Parameters

file - The fileReaderOf(url: URL)

Parameters

url - The URLReaderOf(uri: URI)

Parameters

uri - The URIReaderOf(bytes: Bytes)

Parameters

bytes - The textReaderOf(text: Text) ReaderOf(text: CharSequence)

Parameters

text - The textReaderOf(text: Text, charset: Charset) ReaderOf(text: Text, charset: CharSequence) ReaderOf(text: CharSequence, charset: Charset) ReaderOf(text: CharSequence, charset: CharSequence)

Parameters

text - The text

charset - CharsetReaderOf(input: Input, charset: Charset = Charsets.UTF_8) ReaderOf(input: Input, charset: CharSequence)

Parameters

input - The input

charset - The charsetReaderOf(input: Input, decoder: CharsetDecoder)

Parameters

input - The input

decoder - The decoder

Since 0.13.1

ReaderOf(stream: InputStream, charset: Charset = Charsets.UTF_8)

Parameters

stream - The stream

charset - The charsetReaderOf(stream: InputStream)ReaderOf(stream: InputStream, charset: CharSequence)

Parameters

stream - The stream

charset - The charset

Exceptions

UnsupportedEncodingException - If failsReaderOf(stream: InputStream, decoder: CharsetDecoder)

Parameters

stream - The stream

decoder - The charset decoder

Since 0.13.1

ReaderOf(source: KScalar<Reader>)

A Reader that encapsulates other sources of data.

There is no thread-safety guarantee.

Since 0.3