Package org.h2.store
Class RangeReader
java.lang.Object
java.io.Reader
org.h2.store.RangeReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
Reader that reads only a specified range from the source reader.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRangeReader(Reader r, long offset, long limit) Creates new instance of range reader. -
Method Summary
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
RangeReader
Creates new instance of range reader.- Parameters:
r- source readeroffset- 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 classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-
skip
- Overrides:
skipin classReader- Throws:
IOException
-
ready
- Overrides:
readyin classReader- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classReader
-
mark
- Overrides:
markin classReader- Throws:
IOException
-
reset
- Overrides:
resetin classReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-