Code example for Inflater

Methods: inflate, needsDictionary, needsInput, setInput

0
    } 
 
    /** 
     * @tests java.util.zip.Inflater#Inflater(boolean) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "Inflater", 
        args = {boolean.class} 
    ) 
    public void test_ConstructorZ() { 
        // test method of java.util.zip.inflater.Inflater(boolean) 
        // note does not throw exception if deflater has a header, but inflater 
        // doesn't or vice versa. 
        byte byteArray[] = {1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5'};
        Inflater inflate = new Inflater(true);
        assertNotNull("failed to create the instance of inflater", inflate);
        byte outPutInf[] = new byte[500];
        int r = 0;
        try { 
            while (!(inflate.finished())) {
                if (inflate.needsInput()) {