Code example for ZipEntry

Methods: getSize

0
    /** 
     * @tests java.util.zip.ZipInputStream#read(byte[], int, int) 
     */ 
    public void test_read$BII() throws Exception { 
        zentry = zis.getNextEntry();
        byte[] rbuf = new byte[(int) zentry.getSize()];
        int r = zis.read(rbuf, 0, rbuf.length);
        new String(rbuf, 0, r);
        assertEquals("Failed to read entry", 12, r);
 
        File resources = Support_Resources.createTempFolder();
        Support_Resources.copyFile(resources, null, "Broken_manifest.jar");
        FileInputStream fis = new FileInputStream(new File(resources,
                "Broken_manifest.jar")); 
 
        ZipInputStream zis1 = new ZipInputStream(fis);
 
        zis1.getNextEntry();
        zis1.getNextEntry();
 
        rbuf = new byte[100];