Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-587

BoundedInputStream: Expose method to check whether the boundary was reached

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • None
    • Streams/Writers
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: