Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » zipFile.getEntry(path) returns null
zipFile.getEntry(path) returns null [message #104944] Mon, 11 February 2008 11: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
Previous Topic:Problems on starting an RCP with EclipseStarter
Next Topic:Unknown Source x ConvolveOp
Goto Forum:
  


Current Time: Sat Oct 25 18:21:09 GMT 2014

Powered by FUDForum. Page generated in 0.01744 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software