Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6
-
None
-
None
Description
It would be nice to have an additional method on the BoundedInputStream which allows to check if the boundary was reached after the input stream was consumed.
This is e.g. useful if you use BoundedInputStream together with IOUtils.toString(...) to prevent too large input streams from ending up in the heap. In that case you are interested to at least log something or even throw an exception if the boundary was hit.