Code example for ZipEntry

Methods: getName

0
    } 
 
    // Add a single class from zipFile to zipPackages 
    // Only add valid, public classes 
    private void addZipEntry(Hashtable zipPackages, ZipEntry entry, ZipInputStream zip) throws IOException {
        String name = entry.getName();
        // System.err.println("entry: "+name); 
        if (!name.endsWith(".class")) {
            return; 
        } 
 
        char sep = '/';
        int breakPoint = name.lastIndexOf(sep);
        if (breakPoint == -1) {
            breakPoint = name.lastIndexOf('\\');
            sep = '\\';
        } 
 
        String packageName;
        if (breakPoint == -1) {
Experience pair programming with AI  Get Codota for Java