Kactoos

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

ReaderAsBytes

class ReaderAsBytes : Bytes

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

Constructors

Name Summary
<init> ReaderAsBytes(rdr: Reader, cset: Charset = Charsets.UTF_8, max: Int = 16 shl 10)
ReaderAsBytes(rdr: Reader, max: Int)
Ctor.ReaderAsBytes(reader: Reader, charset: CharSequence, size: Int = 16 shl 10)
Reader as Bytes.

Functions

Name Summary
asBytes fun asBytes(): ByteArray
Convert it to the byte array.