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

[SFTP] SftpFileObject getInputStream(long) reads the whole file into memory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      The method getInputStream(long filePointer) in SftpFileObject.java reads the complete file into memory to create the input stream.
      Newer versions of JSch provide a method
      channel.get(file, monitor, filePointer);
      that is much faster.

        Attachments

        1. SftpFileObject.java.patch
          2 kB
          Martin Stockhammer

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mstockhammer Martin Stockhammer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: