Kactoos

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

LoggingOutputStream

class LoggingOutputStream : OutputStream

Logged output stream.

There is no thread-safety guarantee.

Parameters

origin - Destination of data

destination - The name of source data

logger - Message logger

Since 0.3

Constructors

Name Summary
<init> LoggingOutputStream(origin: OutputStream, destination: String, logger: Logger = Logger.getLogger(destination))
Logged output stream.

Functions

Name Summary
close fun close(): Unit
flush fun flush(): Unit
write fun write(data: Int): Unit
fun write(buf: ByteArray): Unit
fun write(buf: ByteArray, offset: Int, len: Int): Unit