Kactoos

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

<init>

ReaderAsBytes(rdr: Reader, cset: Charset = Charsets.UTF_8, max: Int = 16 shl 10)

Ctor.

Parameters

rdr - Reader

cset - Charset

max - Buffer sizeReaderAsBytes(rdr: Reader, max: Int)

Ctor.

Parameters

rdr - Reader

max - Buffer size

Since 0.13.3

ReaderAsBytes(reader: Reader, charset: CharSequence, size: Int = 16 shl 10)

Reader as Bytes.

This class is for internal use only. Use BytesOf instead.

There is no thread-safety guarantee.

Parameters

reader - Reader

charset - Charset

size - Buffer size

Since 0.3