commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Onslow <>
Subject [CSV] Error: End-of-File, expected line
Date Fri, 22 Apr 2016 10:43:12 GMT

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;
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?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message