Library enhancement proposal for copying data from/to Reader/Writer InputStream/OutputStream
Paul Sandoz
paul.sandoz at oracle.com
Mon Nov 24 16:48:11 UTC 2014
On Nov 24, 2014, at 5:34 PM, Patrick Reinhart <patrick at reini.net> wrote:
> Hi Paul,
>
>> Am 24.11.2014 um 15:32 schrieb Paul Sandoz <paul.sandoz at oracle.com>:
>>
>> 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 j.u.stream.Stream is a reasonable one (I am not too concerned by it myself). I hope one day in the future we can have Stream<int> :-)
Paul.
More information about the core-libs-dev
mailing list