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

LineIterator should call close on itself when hasNext() returns false.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.3.1
    • 1.4
    • Utilities
    • None

    Description

      LineIterator should call close on itself when hasNext() returns false. This would enable us to write something like this:

      for (LineIterator lit = FileUtils.lineIterator(csvFile); lit.hasNext(); )
      {
      //do something
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            infinite.loop Dalibor Novak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: