[ https://issues.apache.org/jira/browse/VFS-410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257970#comment-13257970 ]
Gary D. Gregory commented on VFS-410: ------------------------------------- Hi Martin, In order to use a patch, it must be attached to this issue as a patch file and granted the Apache license. I would not bother with the version check, the POM already specifies 0.1.46 and I am testing a build with 0.1.47 as we speak... Thank you, Gary > If using getInputStream(long position) on SftpFileObject the file is read > 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 > > > 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