I have BufferedInputStream in a Java program that is being instantiated as follows:
fis = new java.io.FileInputStream(file);
bis = new java.io.BufferedInputStream(fis);
However, I want The bufferedInputStream to only be able to read a certain portion of the files, that is, as if it had an offset and length. I want it to be able to read the bytes in the middle with a certain offset and inset. How can I do this?
Your help is greatly appreciated.