Jason Steenstra-Pickens created CSV-155:
-------------------------------------------

             Summary: Get remaining unformatted text
                 Key: CSV-155
                 URL: https://issues.apache.org/jira/browse/CSV-155
             Project: Commons CSV
          Issue Type: New Feature
          Components: Parser
    Affects Versions: 1.1
            Reporter: Jason Steenstra-Pickens


I have the requirement where I need to parse the headers of a CSV string so 
that I can validate them and then remove those headers.

The problem is that the CSVParser creates an internal ExtendedBufferedReader 
from the given reader (which in my case is a StringReader). Reading the first 
record will read and buffer additional records so if I then try and read 
directly from the StringReader it does not return anything.

I either need to be able to pass in my own ExtendedBufferedReader (so would 
need to be made public) or have a new method on the CSVParser to be able to 
retrieve the remaining raw records.

The current workaround is to read all the records and then write all the 
records except the first back out to a StringWriter but this is a lot of 
unnecessary work and code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to