[jira] [Resolved] (CSV-214) Adding a placeholder in the Lexer and CSV parser to store the end-of-line string

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Resolved] (CSV-214) Adding a placeholder in the Lexer and CSV parser to store the end-of-line string

JIRA jira@apache.org

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

Gary Gregory resolved CSV-214.
------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: Discussion)
                   1.5

In Git master, please verify and close. Closes #20.

> Adding a placeholder in the Lexer and CSV parser to store the end-of-line string
> --------------------------------------------------------------------------------
>
>                 Key: CSV-214
>                 URL: https://issues.apache.org/jira/browse/CSV-214
>             Project: Commons CSV
>          Issue Type: Improvement
>          Components: Parser
>            Reporter: Nitin Mahendru
>            Assignee: Gary Gregory
>            Priority: Trivial
>             Fix For: 1.5
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Hi All,
> <My first attempt at adding code to this project>
> In my use-case , I have to read a CSV file, Mangle some columns and then write out a new csv file with those mangled columns.
> I have gone through the parser code and I have found no usable way of getting the line ending information from the CSVParser object. The function readEndOfLine just consumes End of line whether it is CRLF or LF.
> Now that problem is that when I am writing my file back using the CSVPrinter, I need to know what line ending my input file was. I could write an external function to do that. A better way would be to store that information in the CSVParser object and just use it.
> To do that I am just saving the state in a variable and exposing that using a getter.
> I have done some basic testing. and Submitting a pull request regarding that.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...