Konrad Windszus created IO-587:
----------------------------------
Summary: BoundedInputStream: Expose method to check whether the
boundary was reached
Key: IO-587
URL: https://issues.apache.org/jira/browse/IO-587
Project: Commons IO
Issue Type: Improvement
Components: Streams/Writers
Affects Versions: 2.6
Reporter: Konrad Windszus
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)