|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.Reader
org.h2.store.DataReader
public class DataReader
This class is backed by an input stream and supports reading values and variable size data.
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
DataReader(java.io.InputStream in)
Create a new data reader. |
|
| Method Summary | |
|---|---|
void |
close()
|
int |
read(char[] buff,
int off,
int len)
|
byte |
readByte()
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.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| 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 stream| Method Detail |
|---|
public byte readByte()
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
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOException
public int read(char[] buff,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||