@Override public ICodeBaseEntry next() throws InterruptedException { final String fileName = fileNameIterator.next(); // Make the filename relative to the directory String resourceName = getResourceName(fileName); // Update last modified time File file = new File(fileName); long modTime = file.lastModified(); addLastModifiedTime(modTime); return new DirectoryCodeBaseEntry(DirectoryCodeBase.this, resourceName); } }
@Override public String toString() { return getCodeBase() + ":" + getResourceName(); } }
@Override public ClassDescriptor getClassDescriptor() throws InvalidClassFileFormatException { return DescriptorFactory.createClassDescriptorFromResourceName(getResourceName()); }
@Override public ClassDescriptor getClassDescriptor() throws InvalidClassFileFormatException { return DescriptorFactory.createClassDescriptorFromResourceName(getResourceName()); }
@Override public String toString() { return getCodeBase() + ":" + getResourceName(); } }
@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); File file = getFullPathOfResource(resourceName); if (!file.exists()) { return null; } return new DirectoryCodeBaseEntry(this, resourceName); }
@Override public ICodeBaseEntry next() throws InterruptedException { final String fileName = fileNameIterator.next(); // Make the filename relative to the directory String resourceName = getResourceName(fileName); // Update last modified time File file = new File(fileName); long modTime = file.lastModified(); addLastModifiedTime(modTime); return new DirectoryCodeBaseEntry(DirectoryCodeBase.this, resourceName); } }
@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); File file = getFullPathOfResource(resourceName); if (!file.exists()) { return null; } return new DirectoryCodeBaseEntry(this, resourceName); }