-
Type:
Enhancement
-
Status: New
-
Priority:
P4
-
Resolution: Unresolved
-
Affects Version/s: 11.0.9, 15, 16
-
Fix Version/s: None
-
Component/s: core-libs
-
Labels:
-
Subcomponent:
-
CPU:generic
-
OS:generic
A DESCRIPTION OF THE PROBLEM :
FilterInputStream passes through the original methods of InputStream to the wrapped stream. This means that all uses of a FilterInputStream will use the default implementations of the new methods on InputStream, rather than any overridden implementations available on the wrapped stream implementation. This may lead to performance issues.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
FilterInputStream should override and pass through the new methods added to InputStream - readAllBytes and readNBytes
FilterInputStream passes through the original methods of InputStream to the wrapped stream. This means that all uses of a FilterInputStream will use the default implementations of the new methods on InputStream, rather than any overridden implementations available on the wrapped stream implementation. This may lead to performance issues.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
FilterInputStream should override and pass through the new methods added to InputStream - readAllBytes and readNBytes