Code example for ZipEntry

Methods: getSize

     * @tests[], int, int) 
    public void test_read$BII() throws Exception { 
        zentry = zis.getNextEntry();
        byte[] rbuf = new byte[(int) zentry.getSize()];
        int r =, 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,
        ZipInputStream zis1 = new ZipInputStream(fis);
Stop searching for code, let great code find you!  Add Codota to your java IDE