Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-308

Allow applications to provide buffer (or size) for copyLarge methods?

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      Unlike the skip buffer, the copyLarge buffers cannot be shared between threads.
      The methods allocate their own buffers as local variables (current size 4096)

      It might be worth allowing applications to provide their own buffers, and/or specifying the buffer size to be used.

        Issue Links

          Activity

          Hide
          sebb@apache.org Sebb added a comment -

          @Manoj Thanks for the test data provided in IO-305.

          Show
          sebb@apache.org Sebb added a comment - @Manoj Thanks for the test data provided in IO-305 .
          Hide
          garydgregory Gary Gregory added a comment -

          Version 2.2 has been released and addresses this issue.

          Show
          garydgregory Gary Gregory added a comment - Version 2.2 has been released and addresses this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development