commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Rogg (JIRA)" <j...@apache.org>
Subject [jira] Created: (SANDBOX-153) Delimiter should be never recognized as whitespace
Date Thu, 13 Jul 2006 09:05:29 GMT
Delimiter should be never recognized as whitespace
--------------------------------------------------

         Key: SANDBOX-153
         URL: http://issues.apache.org/jira/browse/SANDBOX-153
     Project: Commons Sandbox
        Type: Bug

  Components: CSV  
    Reporter: Markus Rogg


The CSV-Parser ignores whitespaces at the beginning of a token. If the delimiter is a tabspace
and data has no encapsulator the parser loses the empty tokens. The parser should never recognize
a delimiter as a whitespace. A possible solution for the class CSVParser is to change the
method isWhitespace(int) :

  private boolean isWhitespace(int c) {
    return Character.isWhitespace((char) c) && (c != strategy.getDelimiter());
  }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message