Tabnine Logo
JarURLConnectionImpl.openJarFile
Code IndexAdd Tabnine to your IDE (free)

How to use
openJarFile
method
in
libcore.net.url.JarURLConnectionImpl

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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Join (org.hibernate.mapping)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now