kactoos-jvm / nnl.rocks.kactoos.io / BytesOf / <init>
BytesOf(bytes:
Bytes
)
BytesOf(input:
Input
)
Ctor.
input
- The inputBytesOf(file:
File
)
Ctor.
file
- The input
Since 0.13
BytesOf(path:
Path
)
Ctor.
path
- The input
Since 0.13
BytesOf(input:
Input
, max:
Int
)
Ctor.
input
- The input
max
- Max length of the buffer for readingBytesOf(rdr:
Reader
)
Ctor.
rdr
- ReaderBytesOf(rdr:
Reader
, charset:
Charset
)
BytesOf(rdr:
Reader
, charset:
CharSequence
)
Ctor.
rdr
- Reader
charset
- CharsetBytesOf(rdr:
Reader
, charset:
Charset
, max:
Int
)
BytesOf(rdr:
Reader
, charset:
CharSequence
, max:
Int
)
Ctor.
rdr
- Reader
charset
- Charset
max
- Buffer sizeBytesOf(rdr:
Reader
, max:
Int
)
Ctor.
rdr
- Reader
max
- Buffer size
Since 0.13.3
BytesOf(input:
CharSequence
, charset:
Charset
= Charsets.UTF_8)
BytesOf(input:
CharSequence
, charset:
CharSequence
)
Ctor.
input
- The source
charset
- The charsetBytesOf(vararg chars:
Char
)
Ctor.
chars
- The charsBytesOf(chars:
CharArray
, charset:
Charset
)
BytesOf(chars:
CharArray
, charset:
CharSequence
)
Ctor.
chars
- The chars
charset
- The charsetBytesOf(text:
Text
, charset:
Charset
= Charsets.UTF_8)
BytesOf(text:
Text
, charset:
CharSequence
)
Ctor.
text
- The source
charset
- The charsetBytesOf(error:
Throwable
, charset:
Charset
= Charsets.UTF_8)
BytesOf(error:
Throwable
, charset:
CharSequence
)
Ctor.
error
- The exception to serialize
charset
- CharsetBytesOf(vararg strace:
StackTraceElement
)
Ctor.
strace
- The stack trace
Since 0.29
BytesOf(strace:
Array
<
StackTraceElement
>, charset:
Charset
)
BytesOf(strace:
Array
<
StackTraceElement
>, charset:
CharSequence
)
Ctor.
strace
- The stack trace
charset
- Charset
Since 0.29
BytesOf(vararg bytes:
Byte
)
bytes
- Bytes to encapsulateBytesOf(origin:
KBytes
)
A Bytes that encapsulates other sources of data.
There is no thread-safety guarantee.
Since 0.3