Library enhancement proposal for copying data from/to Reader/Writer InputStream/OutputStream
Alan Bateman
Alan.Bateman at oracle.com
Thu Nov 27 16:57:18 UTC 2014
On 27/11/2014 15:56, Pavel Rappo wrote:
> Patrick, as soon as I get feedback from Alan and Paul I'll merge these changes into the current version.
>
> 1. I wonder if it makes sense to provide an additional method where client specifies CharBuffer to be used?
> Moreover if the first argument is CharSequence then we don't even need a buffer:
>
I would suggest starting out with the simple copy(source, target) and
only add additional variants if there is strong need. In this case, is a
variant that allows the intermediate buffer to be specified be something
that would be widely used?
-Alan
More information about the core-libs-dev
mailing list