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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: