Kactoos

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

<init>

WriterAsOutputStream(wtr: Writer, charset: Charset = Charsets.UTF_8)

Parameters

wtr - Writer

charset - CharsetWriterAsOutputStream(wtr: Writer, charset: CharSequence, size: Int = 16 shl 10) WriterAsOutputStream(wtr: Writer, charset: Charset, size: Int)

Parameters

wtr - Reader

charset - Charset

size - Buffer sizeWriterAsOutputStream(wtr: Writer, size: Int)

Parameters

wtr - Reader

size - Buffer size

Since 0.13.3

WriterAsOutputStream(writer: Writer, decoder: CharsetDecoder, size: Int, input: ByteBuffer = ByteBuffer.allocate(size), output: CharBuffer = CharBuffer.allocate(size))

Writer as OutputStream.

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

There is no thread-safety guarantee.

Since 0.13