Package org.h2.store
Class RangeInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.h2.store.RangeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Input stream that reads only a specified range from the source stream.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionRangeInputStream(InputStream in, long offset, long limit) Creates new instance of range input stream. -
Method Summary
Methods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RangeInputStream
Creates new instance of range input stream.- Parameters:
in- source streamoffset- offset of the rangelimit- length of the range- Throws:
IOException- on I/O exception during seeking to the specified offset
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-