Code example for InflaterInputStream

Methods: mark

0
    /** 
     * @tests java.util.zip.InflaterInputStream#mark(int) 
     */ 
    public void test_markI() { 
        InputStream is = new ByteArrayInputStream(new byte[10]);
        InflaterInputStream iis = new InflaterInputStream(is);
        // mark do nothing, do no check 
        iis.mark(0);
        iis.mark(-1);
        iis.mark(10000000);
    } 
 
    /** 
     * @tests java.util.zip.InflaterInputStream#markSupported() 
     */ 
    public void test_markSupported() { 
        InputStream is = new ByteArrayInputStream(new byte[10]);
        InflaterInputStream iis = new InflaterInputStream(is);
        assertFalse(iis.markSupported());
        assertTrue(is.markSupported());