Code example for InputStream

Methods: closemarkreadreset

            level = TestLevel.PARTIAL_COMPLETE, 
            method = "getInputStream", 
            args = {}
    @KnownFailure("ZipEntry.getInputStream().reset() fails with an IOException") 
    public void test_reset() throws IOException { 
        // read an uncompressed entry 
        ZipEntry zentry = zfile.getEntry("File1.txt");
        InputStream is = zfile.getInputStream(zentry);
        byte[] rbuf1 = new byte[6];
        byte[] rbuf2 = new byte[6];
        int r1, r2;
        r1 =;
        assertEquals(rbuf1.length, r1);
        r2 =;
        assertEquals(rbuf2.length, r2);
        r2 =;
        assertEquals(rbuf2.length, r2);
Stop searching for code, let great code find you!  Add Codota to your java IDE