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

Alan Bateman Alan.Bateman at oracle.com
Thu Nov 27 13:51:57 UTC 2014


On 27/11/2014 09:48, Patrick Reinhart wrote:
> Hi Paul,
>
> Seems not to work. See inline patch…
>
> Patrick
>
In terms of signatures then the methods look like a reasonable start. 
For the javadoc/spec then there are several issues that will need 
consideration and you might get some ideas from the javadoc that we have 
in the existing Files.copy methods - for example, it will need some 
wording about errors that happen after some (but not all) bytes/chars 
have been copied, some words to make it clear that the async close or 
either stream or thread interrupt during the copy is specified to the 
stream/readers/appendable involved and cannot be specified. It might 
also be useful to make it clear that IOE is thrown when called when the 
source or target is closed.

-Alan.



More information about the core-libs-dev mailing list