kactoos-jvm / nnl.rocks.kactoos.io / ReaderAsBytes
class ReaderAsBytes :
Bytes
Reader as Bytes.
This class is for internal use only. Use BytesOf instead.
There is no thread-safety guarantee.
reader
- Reader
charset
- Charset
size
- Buffer size
Since 0.3
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. |
Name | Summary |
---|---|
asBytes | fun asBytes(): ByteArray Convert it to the byte array. |