public static int readInt(final InputStream inputStream, final byte[] buffer) throws IOException {
        readFully(inputStream, buffer, 4);
        return readInt(buffer);
    }
public static int readInt(final InputStream inputStream, final byte[] buffer) throws IOException {
        readFully(inputStream, buffer, 4);
        return readInt(buffer);
    }
public static int readInt ( final InputStream inputStream , final byte [ ] buffer ) throws IOException { readFully ( inputStream , buffer , 4 ) ; return readInt ( buffer ) ; }
Reads and returns a single integer value from the input stream.

@param inputStream the input stream to read from
@param buffer the buffer to write the input stream bytes into
@return the integer value
@throws IOException if there's an error reading from the {@code inputStream}
Reads and returns a single integer value from the input stream .