Code example for ZipEntry

Methods: getCompressedSize, getSize, setTime

0
        } 
 
        zos = new ZipOutputStream(bos);
        zos.putNextEntry(new ZipEntry("XX"));
        zos.closeEntry();
        zos.close();
 
        // Regression for HARMONY-97 
        ZipOutputStream zos = new ZipOutputStream(new ByteArrayOutputStream());
        zos.putNextEntry(new ZipEntry("myFile"));
        zos.close();
        zos.close(); // Should be a no-op
    } 
 
    /** 
     * @tests java.util.zip.ZipOutputStream#closeEntry() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "ZipException can not be checked.", 
        method = "closeEntry",