|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.store.DataReader
public class DataReader
This class is backed by an input stream and supports reading values and variable size data.
Constructor Summary | |
---|---|
DataReader(java.io.InputStream in)
Create a new data reader. |
Method Summary | |
---|---|
byte |
read()
Read a byte. |
void |
readFully(byte[] buff,
int offset,
int len)
Read a number of bytes. |
java.lang.String |
readString()
Read a string from the stream. |
int |
readVarInt()
Read a variable size integer. |
long |
readVarLong()
Read a variable size long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataReader(java.io.InputStream in)
in
- the input streamMethod Detail |
---|
public byte read() throws java.io.IOException
java.io.IOException
public int readVarInt() throws java.io.IOException
java.io.IOException
public long readVarLong() throws java.io.IOException
java.io.IOException
public void readFully(byte[] buff, int offset, int len) throws java.io.IOException
buff
- the target bufferoffset
- the offset within the target bufferlen
- the number of bytes to read
java.io.IOException
public java.lang.String readString() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |