Code example for JarFile

Methods: entries, close

0
    } 
 
    public void test_close() throws IOException { 
        String modifiedJarName = "Modified_SF_EntryAttributes.jar";
        Support_Resources.copyFile(resources, null, modifiedJarName);
        JarFile jarFile = new JarFile(new File(resources, modifiedJarName),
                true); 
        Enumeration<JarEntry> entries = jarFile.entries();
 
        jarFile.close();
        jarFile.close();
 
        // Can not check IOException 
    } 
 
    /** 
     * @throws IOException 
     * java.util.jar.JarFile#getInputStream(java.util.zip.ZipEntry) 
     */ 
    public void test_getInputStreamLjava_util_jar_JarEntry() throws IOException { 
Experience pair programming with AI  Get Codota for Java