Code example for InflaterOutputStream

0
        } catch (NullPointerException e) {
            // expected 
        } 
 
        try { 
            new InflaterOutputStream(os, null, -1);
            fail("Should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
 
        try { 
            new InflaterOutputStream(null, null, -1);
            fail("Should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
 
        try { 
            new InflaterOutputStream(os, new Inflater(), 0);
            fail("Should throw IllegalArgumentException");