Code example for ZipInputStream

Methods: closeread

0
    /** 
     * @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; 
        } 
        fail("Read data after stream was closed");
    } 
 
    /** 
     * @tests java.util.zip.ZipInputStream#close() 
     */ 
    public void test_close2() throws Exception { 
        // Regression for HARMONY-1101 
        zis.close();