inputstream pointers?
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, March 22, 2002 11:27 AM


I was wondering does the inputstream classes support pointers. For example, I want to read some bytes from an inputstream and I know their location in the stream. Is there any way I can move to this position and read bytes whether it is ahead or behind my current position?

Any help would be appreciated.

Re: inputstream pointers?

Posted By:   Christopher_Schultz  
Posted On:   Friday, March 22, 2002 11:37 AM

Take a look at the java.io.RandomAccessFile class. I believe it will support the operations that you want.

Unfortunately, I don't think any of the InputStream classes will do this directly.

About | Sitemap | Contact