public void close() throws IOException { try { stream.close(); } finally { synchronized (this) { if (closed) return; closed = true; } bundleFile.decrementReference(); } }
public void close() throws IOException { try { stream.close(); } finally { synchronized (this) { if (closed) return; closed = true; } bundleFile.decrementReference(); } }
public void close() throws IOException { try { stream.close(); } finally { synchronized (this) { if (closed) return; closed = true; } bundleFile.decrementReference(); } }
public void close() throws IOException { try { stream.close(); } finally { synchronized (this) { if (closed) return; closed = true; } bundleFile.decrementReference(); } }
public void close() throws IOException { try { super.close(); } catch (IOException e) { throw enrichExceptionWithBaseFile(e); } finally { synchronized (this) { if (streamClosed) return; streamClosed = true; } decrementReference(); } }
public void close() throws IOException { try { super.close(); } catch (IOException e) { throw enrichExceptionWithBaseFile(e); } finally { synchronized (this) { if (streamClosed) return; streamClosed = true; } decrementReference(); } }
/** * Return an InputStream for the entry. * * @return InputStream for the entry * @exception java.io.IOException */ public InputStream getInputStream() throws IOException { ZipBundleFile zipBundleFile = bundleFile; if (!zipBundleFile.isMruEnabled()) return bundleFile.getZipFile().getInputStream(zipEntry); zipBundleFile.incrementReference(); InputStream result = null; try { return result = new ZipBundleEntryInputStream(zipBundleFile.getZipFile().getInputStream(zipEntry)); } finally { if (result == null) // an exception occurred; decrement the reference zipBundleFile.decrementReference(); } }
/** * Return an InputStream for the entry. * * @return InputStream for the entry * @exception java.io.IOException */ public InputStream getInputStream() throws IOException { ZipBundleFile zipBundleFile = bundleFile; if (!zipBundleFile.isMruEnabled()) return bundleFile.getZipFile().getInputStream(zipEntry); zipBundleFile.incrementReference(); InputStream result = null; try { return result = new ZipBundleEntryInputStream(zipBundleFile.getZipFile().getInputStream(zipEntry)); } finally { if (result == null) // an exception occurred; decrement the reference zipBundleFile.decrementReference(); } }
/** * Return an InputStream for the entry. * * @return InputStream for the entry * @exception java.io.IOException */ public InputStream getInputStream() throws IOException { ZipBundleFile zipBundleFile = bundleFile; if (!zipBundleFile.isMruEnabled()) return bundleFile.getZipFile().getInputStream(zipEntry); zipBundleFile.incrementReference(); InputStream result = null; try { return result = new ZipBundleEntryInputStream(zipBundleFile.getZipFile().getInputStream(zipEntry)); } finally { if (result == null) // an exception occurred; decrement the reference zipBundleFile.decrementReference(); } }
/** * Return an InputStream for the entry. * * @return InputStream for the entry * @exception java.io.IOException */ public InputStream getInputStream() throws IOException { ZipBundleFile zipBundleFile = bundleFile; if (!zipBundleFile.isMruEnabled()) return bundleFile.getZipFile().getInputStream(zipEntry); zipBundleFile.incrementReference(); InputStream result = null; try { return result = new ZipBundleEntryInputStream(zipBundleFile.getZipFile().getInputStream(zipEntry)); } finally { if (result == null) // an exception occurred; decrement the reference zipBundleFile.decrementReference(); } }