You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2007/01/30 21:31:33 UTC

[jira] Resolved: (SANDBOX-173) CSVParser.getLine() blocks until char after eol is recieved.

     [ https://issues.apache.org/jira/browse/SANDBOX-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley resolved SANDBOX-173.
----------------------------------

    Resolution: Fixed

I just committed this patch.  Thanks Erik!

> CSVParser.getLine() blocks until char after eol is recieved.
> ------------------------------------------------------------
>
>                 Key: SANDBOX-173
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-173
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>    Affects Versions: Nightly Builds
>            Reporter: Erik Engstrom
>         Attachments: ExtendedBufferedReader.java.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org