Library enhancement proposal for copying data from/to Reader/Writer InputStream/OutputStream

Paul Sandoz paul.sandoz at
Mon Nov 24 16:48:11 UTC 2014

On Nov 24, 2014, at 5:34 PM, Patrick Reinhart <patrick at> wrote:

> Hi Paul,
>> Am 24.11.2014 um 15:32 schrieb Paul Sandoz <paul.sandoz at>:
>> Hi Patrick,
>> To speed things along for now i recommend creating a new class say IOUtils or preferably ByteStreams. 
> Hmm, in the case of Reader/Writer ByteStreams seams to be a bit confusing for me, should then the reader copy stuff go to also a separate class like „CharStreams“. Locally I created an implementation named „IOUtils“ containing a copy method for InputStream to OutputStream.

Pick the one you prefer so we don't rat hole down the naming abyss :-)

Pavel, your point about the overload with is a reasonable one (I am not too concerned by it myself). I hope one day in the future we can have Stream<int> :-)


More information about the core-libs-dev mailing list