|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.io.BufferInput
org.basex.io.DataInput
public final class DataInput
This is an input stream for project specific data types.
| Constructor Summary | |
|---|---|
DataInput(java.lang.String db,
java.lang.String file)
Initializes the file reader. |
|
| Method Summary | |
|---|---|
boolean |
readBool()
Reads a boolean value from the input stream. |
boolean[] |
readBooleans()
Reads a boolean array from the input stream. |
byte[] |
readBytes()
Reads a byte array from the input stream. |
byte[][] |
readBytesArray()
Reads a double byte array from the input stream. |
int |
readInt()
Reads an integer value from the input stream. |
int |
readNum()
Reads and decompresses an integer value from the input stream. |
int[] |
readNums()
Reads an integer array from the input stream. |
int[] |
readNums(int s)
Reads an integer array with the specified size from the input stream. |
int[][] |
readNumsArray()
Reads a double byte array from the input stream. |
java.lang.String |
readString()
Reads a string from the input stream. |
| Methods inherited from class org.basex.io.BufferInput |
|---|
close, length, read, readByte, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataInput(java.lang.String db,
java.lang.String file)
throws java.io.IOException
db - name of the databasefile - the file to be read
java.io.IOException - IO Exception| Method Detail |
|---|
public boolean readBool()
public boolean[] readBooleans()
public byte[] readBytes()
public byte[][] readBytesArray()
public int readInt()
public int readNum()
public int[] readNums()
public int[] readNums(int s)
s - array size
public int[][] readNumsArray()
public java.lang.String readString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||