How can I create constrained InputStream to read only part of the file?

Posted by alex2k8 on Stack Overflow See other posts from Stack Overflow or by alex2k8
Published on 2010-05-22T13:57:24Z Indexed on 2010/05/22 14:00 UTC
Read the original article Hit count: 246

Filed under:
|

I want to create an InputStream that is limited to a certain range of bytes in file, e.g. to bytes from position 0 to 100. So that the client code should see EOF once 100th byte is reached.

© Stack Overflow or respective owner

Related posts about java

Related posts about inputstream