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 Type
    Method
    Description
    long
    Reads four input bytes and returns a long value in the range 0 through 2147483647.
  • Method Details

    • readUnsignedInt

      long readUnsignedInt() throws IOException
      Reads four input bytes and returns a long value in the range 0 through 2147483647. This method is suitable for reading the bytes written by DataOutput.writeInt(int) if the argument to writeInt was intended to be a value in the range 0 through 2147483647.
      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.