commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-587) BoundedInputStream: Expose method to check whether the boundary was reached
Date Tue, 09 Oct 2018 08:28:00 GMT
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)

Mime
View raw message