commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Onslow <robert.ons...@gmail.com>
Subject Re: [CSV] Error: End-of-File, expected line
Date Fri, 22 Apr 2016 16:31:05 GMT
Wait ...
This isn't a CSV error at all!
It's a pdfbox error.
Sorry everyone.
Robert

On Fri, Apr 22, 2016 at 5:26 PM, Robert Onslow <robert.onslow@gmail.com> wrote:
> Yes, parses fine into e.g. Excel
>
>
> On Fri, Apr 22, 2016 at 2:58 PM, sebb <sebbaz@gmail.com> wrote:
>> On 22 April 2016 at 11:43, Robert Onslow <robert.onslow@gmail.com> wrote:
>>> Hi!
>>>
>>> I'm reading CSV encoded in UTF-16:
>>>
>>> Reader reader  = new BufferedReader(new InputStreamReader(new
>>> FileInputStream(source), "UTF-16"));
>>> //Ignore 2 bytes of format data
>>> reader.read();
>>> CSVParser parser = format.parse(reader)
>>>
>>> The CSV, with record separators 0D0A,  is consumed correctly except I
>>> get thie above error at the end of the parse
>>>
>>> The file ends with 0D0A
>>>
>>> Does anyone know what the problem may be here, please?
>>
>> I'm guessing, but it sounds like CSV was expecting more input.
>> Is the file syntactically complete?
>>
>>> Thanks
>>>
>>> Robert
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: user-help@commons.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>

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


Mime
View raw message