Code example for JarInputStream

Methods: close

0
        compareFiles(jarFile, jarFile2);
    } 
 
    public void testAlternativeConstructor() throws FileNotFoundException, 
            IOException, URISyntaxException, Pack200Exception { 
        JarInputStream inStream = new JarInputStream(new FileInputStream(
                new File(Archive.class.getResource(
                        "/org/apache/harmony/pack200/tests/sqlUnpacked.jar").toURI())));
        file = File.createTempFile("sql", ".pack.gz");
        file.deleteOnExit();
        out = new FileOutputStream(file);
        new Archive(inStream, out, null).pack();
        inStream.close();
        out.close();
    } 
 
    public void testLargeClass() throws IOException, Pack200Exception, 
            URISyntaxException { 
        in = new JarFile(new File(Archive.class.getResource(
                "/org/apache/harmony/pack200/tests/largeClassUnpacked.jar") 
Stop searching for code, let great code find you!  Add Codota to your java IDE