commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary D. Gregory (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (VFS-410) [SFTP] SftpFileObject getInputStream(long) reads the whole file into memory
Date Fri, 20 Apr 2012 12:18:40 GMT

     [ https://issues.apache.org/jira/browse/VFS-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary D. Gregory resolved VFS-410.
---------------------------------

    Resolution: Fixed

Martin,

Thank you for providing the patch. 
It has been applied with only slight changes. 
Committed revision 1328346.

Gary
                
> [SFTP] SftpFileObject getInputStream(long) reads the whole file into memory
> ---------------------------------------------------------------------------
>
>                 Key: VFS-410
>                 URL: https://issues.apache.org/jira/browse/VFS-410
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Martin Stockhammer
>             Fix For: 2.1
>
>         Attachments: SftpFileObject.java.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message