I need to read a 3+GB file using stream with following code:
long start = some_long_value;
int len = some_int_value;
int bytesRead = this.inputStream.read(data, (int)start, len);
My question is while reading file greater than Integer.MAX_VALUE, my start value will surpass this range and while down casting, java will give some garbage negative value and then my read stream will throw error.
How do I tell my stream to read from a offset and that offset value is in long? Should i change my inputStream to some other stream?