public abstract int readInt () throws IOException

Reads four input bytes and returns an int value. Let a-d be the first through fourth bytes read. The value returned is:


 (((a & 0xff) << 24) | ((b & 0xff) << 16) |
  ((c & 0xff) <<  8) | (d & 0xff))
 
This method is suitable for reading bytes written by the writeInt method of interface DataOutput.

Returns:  the int value read.

Exceptions:
EOFException    if this stream reaches the end before reading all the bytes.
IOException    if an I/O error occurs.