Code example for ZipInputStream

Methods: close

0
    /** 
     * @tests java.util.zip.ZipInputStream#close() 
     */ 
    public void test_close2() throws Exception { 
        // Regression for HARMONY-1101 
        zis.close();
        // another call to close should NOT cause an exception 
        zis.close();
    } 
 
    /** 
     * @tests java.util.zip.ZipInputStream#closeEntry() 
     */ 
    public void test_closeEntry() throws Exception { 
        zentry = zis.getNextEntry();
        zis.closeEntry();
        zentry = zis.getNextEntry();
        zis.close();
        try { 
            zis.closeEntry();
            fail("IOException expected");