commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacopo Cappellato (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SANDBOX-220) CSVParser.nextValue() seems pointless
Date Sat, 29 Jan 2011 09:26:43 GMT

    [ https://issues.apache.org/jira/browse/SANDBOX-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988417#action_12988417
] 

Jacopo Cappellato commented on SANDBOX-220:
-------------------------------------------

I agree that the method doesn't seem very useful; as far as I understand when an end of line
is reached the method returns (as the end result of the chain ) an empty string "".
In this way it is not possible to figure out when a line begins.
I guess that it can be useful in some special cases, for example when the data in the csv
file is structured in a way (for example if the first value of each line has a given prefix)
that can be used by the calling method to figure out the new lines.
This is not probably a big deal and it can be improved in a future release.

> CSVParser.nextValue() seems pointless
> -------------------------------------
>
>                 Key: SANDBOX-220
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-220
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>            Reporter: Henri Yandell
>             Fix For: CSV 1.0
>
>
> The nextValue method really doesn't seem very useful. There's no concept of end of line,
so your csv file could be 1xn or nx1 and you wouldn't know.

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


Mime
View raw message