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

Add Readable::transferTo(Appendable)

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Withdrawn
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                reinhapa Patrick Reinhart
                Reporter:
                prappo Pavel Rappo
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: