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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classConstructing such an EOF exception is fast, because the stack trace is not filled in. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Reader
mark, markSupported, nullReader, of, read, read, read, readAllAsString, readAllLines, ready, reset, skip, transferTo
-
Field Details
-
in
-
-
Constructor Details
-
DataReader
-
-
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
-
readChar
Read one character from the input stream.- Returns:
- the character
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-