Improve specification of InflaterInputStream.fill()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: None
    • Component/s: core-libs

      Currently the API specification of `InflaterInputStream.fill()` reads as follows:

      ```
      protected void fill()
                   throws IOException
      Fills input buffer with more data to decompress.

      Throws:
          IOException - if an I/O error has occurred
      ```

      It doesn't mention that `fill()` throws an `java.io.EOFException` if the underlying input stream contains no more data.

      In addition the specification should mention that `fill()` sets the protected `len` field of `InflaterInputStream`.

            Assignee:
            Lance Andersen
            Reporter:
            Volker Simonis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: