/** Getter for entry. */ private final JarEntry getEntry(String file) { JarFile j = null; try { synchronized (closeSync) { j = reOpenJarFile(); JarEntry je = null; if (j != null) { je = j.getJarEntry(file); } if (je != null) { return je; } } } catch (IOException iox) { } return new JarEntry(file); }
/** Get the JAR manifest. * It will be lazily initialized. * @return parsed manifest file for this archive */ public Manifest getManifest() { if (manifest == null) { try { synchronized (closeSync) { JarFile j = reOpenJarFile(); manifest = (j == null) ? null : j.getManifest(); manifest = (manifest == null) ? null : new Manifest(manifest); } } catch (IOException ex) { } finally { closeCurrentRoot(false); } if (manifest == null) { manifest = new Manifest(); } } return manifest; }
/** Getter for entry. */ private final JarEntry getEntry (String file) { JarFile j = null; try { synchronized (closeSync) { j = reOpenJarFile (); JarEntry je = j.getJarEntry (file); if (je != null) return je; } } catch (IOException iox) { } return new JarEntry (file); }
/** Getter for entry. */ private final JarEntry getEntry (String file) { JarFile j = null; try { synchronized (closeSync) { j = reOpenJarFile (); JarEntry je = j.getJarEntry (file); if (je != null) return je; } } catch (IOException iox) { } return new JarEntry (file); }
/** Get the JAR manifest. * It will be lazily initialized. * @return parsed manifest file for this archive */ public Manifest getManifest() { if (manifest == null) { try { synchronized (closeSync) { JarFile j = reOpenJarFile (); manifest = j == null ? null : j.getManifest (); manifest = manifest == null ? null : new Manifest(manifest); } } catch (IOException ex) { } finally { closeCurrentRoot(false); } if (manifest == null) manifest = new Manifest (); } return manifest; }
/** Get the JAR manifest. * It will be lazily initialized. * @return parsed manifest file for this archive */ public Manifest getManifest() { if (manifest == null) { try { synchronized (closeSync) { JarFile j = reOpenJarFile (); manifest = j == null ? null : j.getManifest (); manifest = manifest == null ? null : new Manifest(manifest); } } catch (IOException ex) { } finally { closeCurrentRoot(false); } if (manifest == null) manifest = new Manifest (); } return manifest; }
try { synchronized (closeSync) { JarFile j = reOpenJarFile (); if (j != null) { JarEntry je = j.getJarEntry (name);
try { synchronized (closeSync) { JarFile j = reOpenJarFile (); if (j != null) { JarEntry je = j.getJarEntry (name);
for (int i = 0; i <= 2; i++) { try { j = reOpenJarFile (); break;
for (int i = 0; i <= 2; i++) { try { j = reOpenJarFile (); break;