Convenient abstraction to read from a spool of Readers as if it were a single Reader.
Copy the bytes from a Reader to a Writer in chunks of size
Writer.BufferSize
.
Copy the bytes from a Reader to a Writer in chunks of size
Writer.BufferSize
. The Writer is unmanaged, the caller is responsible
for finalization and error handling, e.g.:
Reader.copy(r, w) ensure w.close()
Copy the bytes from a Reader to a Writer in chunks of size n
.
Copy the bytes from a Reader to a Writer in chunks of size n
. The Writer
is unmanaged, the caller is responsible for finalization and error
handling, e.g.:
Reader.copy(r, w, n) ensure w.close()
The number of bytes to read on each refill of the Writer.
Copy bytes from many Readers to a Writer.
Copy bytes from many Readers to a Writer. The Writer is unmanaged, the caller is responsible for finalization and error handling, e.g.:
Reader.copyMany(readers, writer) ensure writer.close()
Copy bytes from many Readers to a Writer.
Copy bytes from many Readers to a Writer. The Writer is unmanaged, the caller is responsible for finalization and error handling, e.g.:
Reader.copyMany(readers, writer) ensure writer.close()
The number of bytes to read each time.
Create a new Reader for a File
Create a new Reader for a File
Wrap InputStream s in with a Reader
Read the entire bytestream presented by r
.
Create a Reader which is also a Writer.
Create a Reader which is also a Writer. The reader is complete (i.e. end-of-stream) when it is closed; it may only be closed while there are no pending writes.