Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8191532

Add Readable::transferTo(Appendable)

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P3 P3
    • None
    • core-libs
    • None

      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.

      Specification

      Detailed changes see webrev

      http://cr.openjdk.java.net/~reinhapa/reviews/8066870/webrev.00

            reinhapa Patrick Reinhart
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: