JDK-8067661: transferTo proposal for Appendable

Alan Bateman Alan.Bateman at oracle.com
Wed Nov 1 12:42:59 UTC 2017

On 16/12/2014 22:54, Pavel Rappo wrote:
> Hi Patrick, nice to hear from you again! I agree we should consider adding this
> method. Unfortunately, from the spec point of view I suppose this one will
> require a lot more chewing. For instance there's nothing that can be closed
> either in Readable or Appendable (in general case), since neither of them is
> java.io.Closeable or even java.lang.AutoCloseable. In my opinion, all mentions
> of 'close' operations should go.
I agree that transferTo(Writer) is a no-brainer. When changed to be more 
general and Appendable then it might be simplest to just deal with the 
AutoCloseable case in the javadoc.


More information about the core-libs-dev mailing list