Le 20/07/2014 16:39, Emmanuel Lécharny a écrit : > FTR, I have fixed a potential pb on windows (computation of the > position, while processing the lines) Sadly I was a bit optimistic. I was trying to get the current position from inside the BufferedReader using reflection, but that won't work in all cases.
I see no other way but writing our own buffered reader on top of a RandomAccessFile. Assuming we are processing a pure UTF-8 file (comments may contains UTF-8 chars), this requires a bit of work.
