Code example for DeflaterInputStream

Methods: close, mark

0
    /** 
     * @tests DeflaterInputStream#mark() 
     */ 
    public void testMark() throws IOException { 
        // mark do nothing 
        DeflaterInputStream dis = new DeflaterInputStream(is);
        dis.mark(-1);
        dis.mark(0);
        dis.mark(1);
        dis.close();
        dis.mark(1);
    } 
 
    /** 
     * @tests DeflaterInputStream#markSupported() 
     */ 
    public void testMarkSupported() throws IOException { 
        DeflaterInputStream dis = new DeflaterInputStream(is);
        assertFalse(dis.markSupported());
        dis.close();
        assertFalse(dis.markSupported());