public static int readIntBE ( final byte [ ] buffer , final int offset ) { int x = 0 ; x |= ( 0xFF & buffer [ offset + 0 ] ) << 24 ; x |= ( 0xFF & buffer [ offset + 1 ] ) << 16 ; x |= ( 0xFF & buffer [ offset + 2 ] ) << 8 ; x |= ( 0xFF & buffer [ offset + 3 ] ) << 0 ; return x ; }
Reads and returns a single big - endian integer value