This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new 58f8acf  [VFS-726] getInputStream(int bufferSize) on SftpFileObject 
effectively ig nores buffer size.
58f8acf is described below

commit 58f8acf597da7f3db06bd3ff8cbfc1c639f92afd
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Aug 16 13:17:54 2019 -0700

    [VFS-726] getInputStream(int bufferSize) on SftpFileObject effectively
    ig
    nores buffer size.
---
 .../main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
index 009a87a..3e1f184 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
@@ -494,6 +494,7 @@ public final class DefaultFileContent implements 
FileContent {
         // Get the raw input stream
         final InputStream inputStream = bufferSize == 0 ? 
fileObject.getInputStream()
                 : fileObject.getInputStream(bufferSize);
+        // Double buffering may take place here.
         final InputStream wrappedInputStream = bufferSize == 0 
                     ? new FileContentInputStream(fileObject, inputStream)
                     : new FileContentInputStream(fileObject, inputStream, 
bufferSize);

Reply via email to