Summary
Add new API for transferring data from a Readable to an Appendable like already existing InputStream.transferTo(OutputStream).
This CSR covers the enhancement request: JDK-8066870
Problem
In order to transfer all data from a Readable to an Appendable mostly the same code has to be written or an external library has to be used instead. This overhead could be reduced by introducing such behaviour directly within the JDK as already available on InputStream for byte data.
Solution
Add an new API that implements the behaviour that else needed to be written by the user.
- http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-November/049730.html
- http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-November/049806.html
Specification
Detailed changes see webrev
http://cr.openjdk.java.net/~reinhapa/reviews/8066870/webrev.00
- csr of
-
JDK-8066870 Add Readable::transferTo(Appendable)
-
- Closed
-