nextEntry = new ZipFileCodeBaseEntry(ZipFileCodeBase.this, zipEntry); break;
private void scanForNextEntry() { while (nextEntry == null) { if (!zipEntryEnumerator.hasMoreElements()) { return; } ZipEntry zipEntry = zipEntryEnumerator.nextElement(); if (!zipEntry.isDirectory()) { addLastModifiedTime(zipEntry.getTime()); nextEntry = new ZipFileCodeBaseEntry(ZipFileCodeBase.this, zipEntry); break; } } } };
@Override public ICodeBaseEntry lookupResource(String resourceName) { // Translate resource name, in case a resource name // has been overridden and the resource is being accessed // using the overridden name. resourceName = translateResourceName(resourceName); try { ZipEntry entry = zipFile.getEntry(resourceName); if (entry == null) { return null; } return new ZipFileCodeBaseEntry(this, entry); } catch (IllegalStateException ise) { // zipFile.getEntry() throws IllegalStateException if the zip file // has been closed return null; } }
nextEntry = new ZipFileCodeBaseEntry(ZipFileCodeBase.this, zipEntry); break;
private void scanForNextEntry() { while (nextEntry == null) { if (!zipEntryEnumerator.hasMoreElements()) { return; } ZipEntry zipEntry = zipEntryEnumerator.nextElement(); if (!zipEntry.isDirectory()) { addLastModifiedTime(zipEntry.getTime()); nextEntry = new ZipFileCodeBaseEntry(ZipFileCodeBase.this, zipEntry); break; } } } };
@Override public ICodeBaseEntry lookupResource(String resourceName) { // Translate resource name, in case a resource name // has been overridden and the resource is being accessed // using the overridden name. resourceName = translateResourceName(resourceName); try { ZipEntry entry = zipFile.getEntry(resourceName); if (entry == null) { return null; } return new ZipFileCodeBaseEntry(this, entry); } catch (IllegalStateException ise) { // zipFile.getEntry() throws IllegalStateException if the zip file // has been closed return null; } }