Code example for Deflater

Methods: deflate, finish, getBytesRead, getTotalIn, getTotalOut, setInput

0
            java.io.InputStream infile2 = Support_Resources
                    .getStream("hyts_compDiction.txt"); 
            BufferedInputStream inflatIP2 = new BufferedInputStream(infile2);
            inflatIP2.read(outPutDiction, 0, outPutDiction.length);
            inflatIP2.close();
 
        } catch (FileNotFoundException e) {
            fail("input file to test InflaterInputStream constructor is not found");
        } catch (ZipException e) {
            fail("read() threw an zip exception while testing constructor");
        } catch (IOException e) {
            fail("read() threw an exception while testing constructor");
        } 
    } 
 
    @Override 
    protected void tearDown() { 
    } 
 
    /** 
     * @tests java.util.zip.Deflater#getBytesRead() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE,