packaging / net.corda.packaging.internal / TeeInputStream

TeeInputStream

class TeeInputStream : FilterInputStream

InputStream that also writes its content to the provided OutputStream while reading

Constructors

<init>

InputStream that also writes its content to the provided OutputStream while reading

TeeInputStream(inputStream: InputStream, destination: OutputStream)

Properties

written

var written: Int

Functions

close

fun close(): Unit

read

fun read(): Int
fun read(b: ByteArray, off: Int, len: Int): Int