Can I change the current position in Stream??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   bikash_paul
Posted On:   Thursday, July 14, 2005 12:33 PM

Hi,



I want to change the current line number of my Reader stream. For that I have used LineNumberReader.setLineNumber() but it is not working.



Can any one please tell me is there any way to do that?



Thanks & Regards

Bikash

Re: Can I change the current position in Stream??

Posted By:   Stephen_Ostermiller  
Posted On:   Monday, July 18, 2005 07:14 AM

You can use skip() to move any input stream forward, but it works by bytes not by lines.


Your best bet is to read a bunch of lines and throw them away. That is what any implementation of moving to a certain line number would do for you anyway.

About | Sitemap | Contact