public final class DataInput extends BufferInput
DataInputStream
.Modifier and Type | Method and Description |
---|---|
boolean |
readBool()
Reads a boolean value.
|
IntList |
readDiffs()
Reads a distance-mapped integer array.
|
double |
readDouble()
Reads a double value.
|
long[] |
readLongs(int s)
Reads an array of long values.
|
int |
readNum()
Reads a compressed integer value; see
Num for more. |
int[] |
readNums()
Reads a compressed integer array.
|
byte[] |
readToken()
Reads a token, represented by its compressed length and its byte array.
|
byte[][] |
readTokens()
Reads a token array.
|
close, content, io, length, mark, markSupported, read, readBytes, readString, reset, size
available, read, read, skip
public DataInput(IO io) throws IOException
io
- the input to be readIOException
- I/O Exceptionpublic boolean readBool() throws IOException
IOException
- I/O Exceptionpublic byte[] readToken() throws IOException
IOException
- I/O Exceptionpublic double readDouble() throws IOException
IOException
- I/O Exceptionpublic IntList readDiffs() throws IOException
IOException
- I/O Exceptionpublic int[] readNums() throws IOException
IOException
- I/O Exceptionpublic byte[][] readTokens() throws IOException
IOException
- I/O Exceptionpublic int readNum() throws IOException
Num
for more.IOException
- I/O Exceptionpublic long[] readLongs(int s) throws IOException
s
- array sizeIOException
- I/O ExceptionCopyright © 2005–2015 BaseX Team. All rights reserved.