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;
}

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 ; }
reads the next little - endian integer from the given datainputstream .
