Package org.jboss.jandex
Class PackedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.jboss.jandex.PackedDataInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
An input stream that reads integers that were packed by
PackedDataOutputStream
Thread-Safety
This class is not thread-safe can not be shared between threads.-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
MAX_1BYTE
static final int MAX_1BYTE- See Also:
-
-
Constructor Details
-
PackedDataInputStream
-
-
Method Details
-
readPackedU32
Reads a packed unsigned integer. Every byte uses the first bit as a control bit to signal when there are additional bytes to be read. The remaining seven bits are data. Depending on the size of the number one to five bytes may be read.- Returns:
- the unpacked integer
- Throws:
IOException
-