Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-7

CSVParser.getLine() blocks until char after eol is recieved.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Parser
    • None

    Description

      If you are parsing a stream (for example stdin) and you call CSVParser.getLine() I would it to expect to block until a eol or eof is encountered. Instead the method blocks until it has recieved a char after the eol. This seems to be because ExtendedBufferReader blocks on lookaheadchar in read(). It should check to see if there the underlying input stream is ready before blocking to read the lookaheadchar.

      Attachments

        1. ExtendedBufferedReader.java.diff
          0.5 kB
          Erik Engstrom

        Activity

          People

            Unassigned Unassigned
            eengstrom Erik Engstrom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: