Kactoos

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

WriterAsOutputStream

class WriterAsOutputStream : OutputStream

Writer as OutputStream.

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

There is no thread-safety guarantee.

Since 0.13

Constructors

Name Summary
<init> WriterAsOutputStream(wtr: Writer, charset: Charset = Charsets.UTF_8)
WriterAsOutputStream(wtr: Writer, charset: CharSequence, size: Int = 16 shl 10)
WriterAsOutputStream(wtr: Writer, size: Int)
WriterAsOutputStream(wtr: Writer, charset: Charset, size: Int)WriterAsOutputStream(writer: Writer, decoder: CharsetDecoder, size: Int, input: ByteBuffer = ByteBuffer.allocate(size), output: CharBuffer = CharBuffer.allocate(size))
Writer as OutputStream.

Functions

Name Summary
close fun close(): Unit
write fun write(data: Int): Unit
fun write(buffer: ByteArray): Unit
fun write(buffer: ByteArray, offset: Int, length: Int): Unit