Copy the bytes from a Reader to a Writer in chunks of the given buffer size (default = 4KB).
Copy the bytes from a Reader to a Writer in chunks of the given buffer size (default = 4KB). 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 the given buffer size (default = 4KB).
Copy the bytes from a Reader to a Writer in chunks of the given buffer size (default = 4KB). The Writer is unmanaged, the caller is responsible for finalization and error handling, e.g.:
Reader.copy(r, w) ensure w.close()
The number of bytes to read on each refill of the Writer.
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.