Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-705

Add ability to specify the buffer size of input/output streams

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      "FileContent.getInputStream"'s documentation specifies that "The input stream is buffered" which is true (because the implementation in "DefaultFileContent" wraps it in "FileContentInputStream" which inherits "MonitorInputStream" which in turn "BufferedInputStream". However, there is no way to configure the buffer size and sometimes the default one which is just 8 KB might not be a good choice. Adding an ability to specify a different buffer size will help greatly boost the performance when talking to slow providers.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                boris-petrov Boris Petrov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: