/*     */   protected InputStream getJarInputStream(String paramString, final URLConnection paramURLConnection)
/*     */     throws Exception
/*     */   {
/* 534 */     final InputStream[] arrayOfInputStream = new InputStream[1];
/*     */ 
/* 538 */     for (int i = 0; (i < 3) && (arrayOfInputStream[0] == null); i++) {
/* 539 */       Thread local3 = new Thread()
/*     */       {
/*     */         public void run() {
/*     */           try {
/* 543 */             arrayOfInputStream[0] = paramURLConnection.getInputStream();
/*     */           }
/*     */           catch (IOException localIOException)
/*     */           {
/*     */           }
/*     */         }
/*     */       };
/* 549 */       local3.setName("JarInputStreamThread");
/* 550 */       local3.start();
/*     */ 
/* 552 */       int j = 0;
/* 553 */       while ((arrayOfInputStream[0] == null) && (j++ < 5)) {
/*     */         try {
/* 555 */           local3.join(1000L);
/*     */         }
/*     */         catch (InterruptedException localInterruptedException1)
/*     */         {
/*     */         }
/*     */       }
/* 561 */       if (arrayOfInputStream[0] != null) continue;
/*     */       try {
/* 563 */         local3.interrupt();
/* 564 */         local3.join();
/*     */       }
/*     */       catch (InterruptedException localInterruptedException2)
/*     */       {
/*     */       }
/*     */     }
/*     */ 
/* 571 */     if (arrayOfInputStream[0] == null) {
/* 572 */       throw new Exception("Unable to download " + paramString);
/*     */     }
/*     */ 
/* 575 */     return arrayOfInputStream[0];
/*     */   }