public int read4LE ( ) throws OtpErlangDecodeException { final byte [ ] b = new byte [ 4 ] ; try { super . read ( b ) ; } catch ( final IOException e ) { throw new OtpErlangDecodeException ( "Cannot read from input stream" ) ; } return ( b [ 3 ] << 24 & 0xff000000 ) + ( b [ 2 ] << 16 & 0xff0000 ) + ( b [ 1 ] << 8 & 0xff00 ) + ( b [ 0 ] & 0xff ) ; }
Read a four byte little endian integer from the stream .