@Override public void close() throws IOException { if (closed.compareAndSet(false, true)) { // Must only call this once else the usage counting will break archiveResourceSet.closeJarFile(); } is.close(); }
@Override public void close() throws IOException { if (closed.compareAndSet(false, true)) { // Must only call this once else the usage counting will break archiveResourceSet.closeJarFile(); } is.close(); }
getArchiveResourceSet().closeJarFile();
getArchiveResourceSet().closeJarFile();
@Override protected JarInputStreamWrapper getJarInputStreamWrapper() { JarFile jarFile = null; try { jarFile = getArchiveResourceSet().openJarFile(); // Need to create a new JarEntry so the certificates can be read JarEntry jarEntry = jarFile.getJarEntry(getResource().getName()); InputStream is = jarFile.getInputStream(jarEntry); return new JarInputStreamWrapper(jarEntry, is); } catch (IOException e) { if (getLog().isDebugEnabled()) { getLog().debug(sm.getString("jarResource.getInputStreamFail", getResource().getName(), getBaseUrl()), e); } if (jarFile != null) { getArchiveResourceSet().closeJarFile(); } return null; } } }
@Override protected JarInputStreamWrapper getJarInputStreamWrapper() { JarFile jarFile = null; try { jarFile = getArchiveResourceSet().openJarFile(); // Need to create a new JarEntry so the certificates can be read JarEntry jarEntry = jarFile.getJarEntry(getResource().getName()); InputStream is = jarFile.getInputStream(jarEntry); return new JarInputStreamWrapper(jarEntry, is); } catch (IOException e) { if (getLog().isDebugEnabled()) { getLog().debug(sm.getString("jarResource.getInputStreamFail", getResource().getName(), getBaseUrl()), e); } if (jarFile != null) { getArchiveResourceSet().closeJarFile(); } return null; } } }