/** * Get a JarVisitor to the jar <code>jarPath</code> applying the given filters * * Method used in a non-managed environment * * @throws IllegalArgumentException if the jarPath is incorrect */ public static JarVisitor getVisitor(String jarPath, Filter[] filters) throws IllegalArgumentException { File file = new File( jarPath ); if ( file.isFile() ) { return new InputStreamZippedJarVisitor( jarPath, filters ); } else { return new ExplodedJarVisitor( jarPath, filters ); } }
addElement( entry.getName(), new ByteArrayInputStream( entryBytes ),
/** * Get a JarVisitor to the jar <code>jarPath</code> applying the given filters * * Method used in a non-managed environment * * @throws IllegalArgumentException if the jarPath is incorrect */ public static JarVisitor getVisitor(String jarPath, Filter[] filters) throws IllegalArgumentException { File file = new File( jarPath ); if ( file.isFile() ) { return new InputStreamZippedJarVisitor( jarPath, filters ); } else { return new ExplodedJarVisitor( jarPath, filters ); } }
String subname = subZipEntry.getName(); if ( subname.startsWith( "/" ) ) subname = subname.substring( 1 ); addElement( subname, new ByteArrayInputStream(entryBytes), if ( name.startsWith( "/" ) ) name = name.substring( 1 ); addElement( name, new ByteArrayInputStream( entryBytes ),
return new InputStreamZippedJarVisitor( jarUrl, filters, entry );
String subname = subZipEntry.getName(); if ( subname.startsWith( "/" ) ) subname = subname.substring( 1 ); addElement( subname, new ByteArrayInputStream(entryBytes), if ( name.startsWith( "/" ) ) name = name.substring( 1 ); addElement( name, new ByteArrayInputStream( entryBytes ),
return new InputStreamZippedJarVisitor( jarUrl, filters, entry );
if ( "jar".equals( protocol ) ) { return new InputStreamZippedJarVisitor( jarUrl, filters );