zipFile.getEntry(path) returns null [message #104944] |
Mon, 11 February 2008 06:36 |
Eclipse User |
|
|
|
Originally posted by: tweety_pks.gafs.xhdj
Hi,
I have the following problem: I have a directory with icons and I want to
get one.
During debugging I go to the getZipEntry(String path) method. There if I
have the following source code:
Enumeration zipEntries = zipFile.entries();
while(zipEntries.hasMoreElements()) {
ZipEntry entry = (ZipEntry) zipEntries.nextElement();
if(!entry.isDirectory() && !entry.getName().endsWith("java") &&
!entry.getName().endsWith("class"))
System.out.println(entry);
}
It returns the entry, which I want. But when I call :
ZipEntry entry = zipFile.getEntry(path);
it returns null.
Could someone tell me, of what that is due to?
Thanks,
Petya Sabeva
|
|
|
Powered by
FUDForum. Page generated in 0.02310 seconds