Package org.h2.store
Class DataReader
java.lang.Object
java.io.Reader
org.h2.store.DataReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
This class is backed by an input stream and supports reading values and
variable size data.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
DataReader
Create a new data reader.- Parameters:
in- the input stream
-
-
Method Details
-
readByte
Read a byte.- Returns:
- the byte
- Throws:
IOException- on failure
-
readVarInt
Read a variable size integer.- Returns:
- the value
- Throws:
IOException- on failure
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-