@JvmOverloads fun StreamableBuffer.copyToStream(outputStream: OutputStream, chunkSize: Long = DEFAULT_CHUNK_SIZE): Unit
Copy a StreamableBuffer to an OutputStream, chunk by chunk.
outputStream
- the destination OutputStream.
Receiver
the StreamableBuffer to be copied.
Since
7
@JvmOverloads fun Async.copyToStream(outputStream: OutputStream, chunkSize: Long = DEFAULT_CHUNK_SIZE): Future<Void>
Copy a StreamableBuffer to an OutputStream, chunk by chunk, asynchronously.
outputStream
- the destination OutputStream.
Receiver
the StreamableBuffer.Async to be copied.
Return
A Future that is completed when the StreamableBuffer is copied entirely.
Since
7