Code example for InflaterInputStream

Methods: closeread

0
    public void test_read$BII2() throws IOException { 
        File resources = Support_Resources.createTempFolder();
        Support_Resources.copyFile(resources, null, "Broken_manifest.jar");
        FileInputStream fis = new FileInputStream(new File(resources,
                "Broken_manifest.jar")); 
        InflaterInputStream iis = new InflaterInputStream(fis);
        byte[] outBuf = new byte[530];
 
        iis.close();
        try { 
            iis.read(outBuf, 0, 5);
            fail("IOException expected");
        } catch (IOException ee) {
            // expected. 
        } 
    } 
 
    public void test_read$BII3() throws IOException { 
        File resources = Support_Resources.createTempFolder();
        Support_Resources.copyFile(resources, null, "Broken_manifest.jar");
Connect your IDE to all the code out there  Get Codota for Java