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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parser
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: