public int getInt32 ( ) throws IOException { if ( _isMotorolaByteOrder ) { // Motorola - MSB first (big endian) return ( getByte ( ) << 24 & 0xFF000000 ) | ( getByte ( ) << 16 & 0xFF0000 ) | ( getByte ( ) << 8 & 0xFF00 ) | ( getByte ( ) & 0xFF ) ; } else { // Intel ordering - LSB first (little endian) return ( getByte ( ) & 0xFF ) | ( getByte ( ) << 8 & 0xFF00 ) | ( getByte ( ) << 16 & 0xFF0000 ) | ( getByte ( ) << 24 & 0xFF000000 ) ; } }
Returns a signed 32 - bit integer from four bytes of data .