Boris Petrov created VFS-704:
--------------------------------
Summary: Some providers wrap their input streams twice in a
BufferedInputStream
Key: VFS-704
URL: https://issues.apache.org/jira/browse/VFS-704
Project: Commons VFS
Issue Type: Improvement
Affects Versions: 2.3
Reporter: Boris Petrov
"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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)