JarURLConnectionImpl.openJarFile
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using libcore.net.url.JarURLConnectionImpl.openJarFile (Showing top 7 results out of 315)

origin: robovm/robovm

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
origin: MobiVM/robovm

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
origin: ibinti/bugvm

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
origin: FlexoVM/flexovm

/**
 * Returns the Jar file referred by this {@code URLConnection}
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
private void findJarFile() throws IOException {
  if (getUseCaches()) {
    synchronized (jarCache) {
      jarFile = jarCache.get(jarFileURL);
    }
    if (jarFile == null) {
      JarFile jar = openJarFile();
      synchronized (jarCache) {
        jarFile = jarCache.get(jarFileURL);
        if (jarFile == null) {
          jarCache.put(jarFileURL, jar);
          jarFile = jar;
        } else {
          jar.close();
        }
      }
    }
  } else {
    jarFile = openJarFile();
  }
  if (jarFile == null) {
    throw new IOException();
  }
}
libcore.net.urlJarURLConnectionImplopenJarFile

Popular methods of JarURLConnectionImpl

  • <init>
  • connect
  • findJarEntry
    Look up the JarEntry of the entry referenced by this URLConnection.
  • findJarFile
    Returns the Jar file referred by this URLConnection
  • getEntryName
  • getJarEntry
    Returns the JarEntry of the entry referenced by this URLConnection.
  • getJarFileURL
  • getUseCaches
  • guessContentTypeFromName

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)