|
||||||||||
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(File file)
Initializes the file reader. |
Method Summary | |
---|---|
boolean |
readBool()
Reads a boolean value 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. |
double |
readDouble()
Reads a double 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. |
Methods inherited from class org.basex.io.BufferInput |
---|
close, encoding, encoding, length, length, read, read, readByte, readChar, readString, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataInput(File file) throws IOException
file
- the file to be read
IOException
- IO ExceptionMethod Detail |
---|
public boolean readBool() throws IOException
IOException
- IO Exceptionpublic byte[] readBytes() throws IOException
IOException
- IO Exceptionpublic double readDouble() throws IOException
IOException
- IO Exceptionpublic int[] readNums() throws IOException
IOException
- IO Exceptionpublic int[] readNums(int s) throws IOException
s
- array size
IOException
- IO Exceptionpublic byte[][] readBytesArray() throws IOException
IOException
- IO Exceptionpublic int readNum() throws IOException
IOException
- IO Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |