Kactoos

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

<init>

BytesOf(bytes: Bytes)BytesOf(input: Input)

Ctor.

Parameters

input - The inputBytesOf(file: File)

Ctor.

Parameters

file - The input

Since 0.13

BytesOf(path: Path)

Ctor.

Parameters

path - The input

Since 0.13

BytesOf(input: Input, max: Int)

Ctor.

Parameters

input - The input

max - Max length of the buffer for readingBytesOf(rdr: Reader)

Ctor.

Parameters

rdr - ReaderBytesOf(rdr: Reader, charset: Charset) BytesOf(rdr: Reader, charset: CharSequence)

Ctor.

Parameters

rdr - Reader

charset - CharsetBytesOf(rdr: Reader, charset: Charset, max: Int) BytesOf(rdr: Reader, charset: CharSequence, max: Int)

Ctor.

Parameters

rdr - Reader

charset - Charset

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

Ctor.

Parameters

rdr - Reader

max - Buffer size

Since 0.13.3

BytesOf(input: CharSequence, charset: Charset = Charsets.UTF_8) BytesOf(input: CharSequence, charset: CharSequence)

Ctor.

Parameters

input - The source

charset - The charsetBytesOf(vararg chars: Char)

Ctor.

Parameters

chars - The charsBytesOf(chars: CharArray, charset: Charset) BytesOf(chars: CharArray, charset: CharSequence)

Ctor.

Parameters

chars - The chars

charset - The charsetBytesOf(text: Text, charset: Charset = Charsets.UTF_8) BytesOf(text: Text, charset: CharSequence)

Ctor.

Parameters

text - The source

charset - The charsetBytesOf(error: Throwable, charset: Charset = Charsets.UTF_8) BytesOf(error: Throwable, charset: CharSequence)

Ctor.

Parameters

error - The exception to serialize

charset - CharsetBytesOf(vararg strace: StackTraceElement)

Ctor.

Parameters

strace - The stack trace

Since 0.29

BytesOf(strace: Array<StackTraceElement>, charset: Charset) BytesOf(strace: Array<StackTraceElement>, charset: CharSequence)

Ctor.

Parameters

strace - The stack trace

charset - Charset

Since 0.29

BytesOf(vararg bytes: Byte)

Parameters

bytes - Bytes to encapsulateBytesOf(origin: KBytes)

A Bytes that encapsulates other sources of data.

There is no thread-safety guarantee.

Since 0.3