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 .