add ZipEntry.isDirectory (trivial implementation)

This commit is contained in:
Joshua Warner 2012-03-21 10:38:30 -06:00
parent f2e26791a4
commit 8e6f5ac6e3

View File

@ -14,4 +14,8 @@ public abstract class ZipEntry {
public abstract String getName();
public abstract int getCompressedSize();
public abstract int getSize();
public boolean isDirectory() {
return getName().endsWith("/");
}
}