public static long readUINT32(InputStream stream) throws IOException {
  long result=0;
  for (int i=0; i <= 24; i+=8) {
    result|=(long)stream.read() << i;
  }
  return result;
}

public static long readUINT32 ( InputStream stream ) throws IOException { long result = 0 ; for ( int i = 0 ; i <= 24 ; i += 8 ) { result |= ( long ) stream . read ( ) << i ; } return result ; }
reads 4 bytes from stream and interprets them as uint32 . < br >
