Code example for ZipInputStream

Methods: closeEntrygetNextEntry

0
 
    /** 
     * @tests java.util.zip.ZipInputStream#ZipInputStream(java.io.InputStream) 
     */ 
    public void test_ConstructorLjava_io_InputStream() throws Exception { 
        zentry = zis.getNextEntry();
        zis.closeEntry();
    } 
 
    /** 
     * @tests java.util.zip.ZipInputStream#close() 
     */ 
    public void test_close() { 
        try { 
            zis.close();
            byte[] rbuf = new byte[10];
            zis.read(rbuf, 0, 1);
        } catch (IOException e) {
            return; 
        }