Java - is it possible to read a file line by line, stop, and then immediately start reading bytes wh
Posted
by hatorade
on Stack Overflow
See other posts from Stack Overflow
or by hatorade
Published on 2009-08-27T14:13:29Z
Indexed on
2010/04/20
8:03 UTC
Read the original article
Hit count: 355
I'm having an issue trying to parse the ascii part of a file, and once I hit the end tag, IMMEDIATELY start reading in the bytes from that point on. Everything I know in Java to read off a line or a whole word creates a buffer, which ruins any chance of getting the bytes immediately following my stop point. Is the only way to do this read in byte-by-byte, find new-lines, reconstruct everything prior to the new-line, see if it's my end tag, and go from there?
© Stack Overflow or respective owner