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

CharSequenceInputStream - add tests for available()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      There are currently no tests for the available() method.

      Tme method should return an estimate of the number of items remaining, so it should be possible to read - or skip - that many items without reaching EOF.

      At present, the code measures the number of CharBuf entries remaining; I think that is wrong - it should be the number of bytes left in the byte stream.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: