|
||||||||||
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 | |
---|---|
long |
read5()
Reads an integer value from the input stream. |
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 |
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. |
java.lang.String |
readString()
Reads a string from the input stream. |
Methods inherited from class org.basex.io.BufferInput |
---|
close, encoding, encoding, length, length, read, read, readByte, readChar, 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 ExceptionMethod Detail |
---|
public boolean readBool() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic java.lang.String readString() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic byte[] readBytes() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic int[] readNums() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic int[] readNums(int s) throws java.io.IOException
s
- array size
java.io.IOException
- IO Exceptionpublic boolean[] readBooleans() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic byte[][] readBytesArray() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic int readNum() throws java.io.IOException
java.io.IOException
- IO Exceptionpublic long read5() throws java.io.IOException
java.io.IOException
- IO Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |