The destination stram to pipe into
The source stream to read data from
Number of bytes to pipe through. The default of zero means to pipe the whole input stream.
The maximum time before data is flushed to destination. The default value of 0 s will flush after each chunk of data read from source.
OutputStream.write
Pipes a stream to another while keeping the latency within the specified threshold.