Code example for InflaterOutputStream

Methods: close

0
 
    /** 
     * @tests java.util.zip.InflaterOutputStream#close() 
     */ 
    public void test_close() throws IOException { 
        InflaterOutputStream ios = new InflaterOutputStream(os);
        ios.close();
        // multiple close 
        ios.close();
    } 
 
    /** 
     * @tests java.util.zip.InflaterOutputStream#flush() 
     */ 
    public void test_flush() throws IOException { 
        InflaterOutputStream ios = new InflaterOutputStream(os);
        ios.close();
        try { 
            ios.flush();
            fail("Should throw IOException");
        } catch (IOException e) {