Package com.aurumsmods.littlebigio
Interface UnsignedIntInput
- All Known Implementing Classes:
BinaryInputStream
public interface UnsignedIntInput
Provides a contract for reading unsigned 32-bit integers from a data source,
such as an
InputStream
.-
Method Summary
Modifier and TypeMethodDescriptionlong
Reads four input bytes and returns along
value in the range0
through2147483647
.
-
Method Details
-
readUnsignedInt
Reads four input bytes and returns along
value in the range0
through2147483647
. This method is suitable for reading the bytes written byDataOutput.writeInt(int)
if the argument towriteInt
was intended to be a value in the range0
through2147483647
.- Returns:
- the unsigned 32-bit value read.
- Throws:
EOFException
- if this stream reaches the end before reading all the bytes.IOException
- if an I/O error occurs.
-