question: public static int readLittleEndianInt ( DataInputStream dataStream ) throws IOException { int bits = 0x00000000 ; for ( int shift = 0 ; shift < 32 ; shift += 8 ) { int byteRead = ( 0x000000ff & dataStream . readByte ( ) ) ; bits |= ( byteRead << shift ) ; } return bits ; }
target:  Reads the next little-endian integer from the given DataInputStream.