Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.3
-
None
Description
"DefaultFileContent.getInputStream" gets the input stream from the "fileObject" and then wraps it in "FileContentInputStream" which inherits from "MonitorInputStream" which in turn is a "BufferedInputStream". But some providers return input streams which are already "MonitorInputStream" - e.g. "FtpInputStream" and "HttpInputStream". Which means that they get wrapped twice in a "BufferedInputStream" which is needless waste of memory.
P.S. The same actually applies for output streams - "FtpOutputStream" e.g.
Attachments
Issue Links
- is related to
-
VFS-726 getInputStream(int bufferSize) on SftpFileObject effectively ignores buffer size
- Closed