public static ZipIterator create(URL url) throws IOException, URISyntaxException { if (url.getProtocol().equals("file")) { return create(Utils.toFile(url)); } else if (url.getProtocol().equals("jar")) { int pos = url.getPath().lastIndexOf("!/"); URL jarURL = new URL(url.getPath().substring(0, pos)); String path = url.getPath().substring(pos + 2); final ZipIterator container = create(jarURL); ZipIterator zip = null; try { zip = create(filter); break; return create(url.openStream());
URL jarURL = new URL(url.getPath().substring(0, pos)); String path = url.getPath().substring(pos + 2); ZipIterator i = ZipIterator.create(jarURL); try { while (i.hasNext()) {
public static ZipIterator create(URL url) throws IOException, URISyntaxException { if (url.getProtocol().equals("file")) { return create(Utils.toFile(url)); } else if (url.getProtocol().equals("jar")) { int pos = url.getPath().lastIndexOf("!/"); URL jarURL = new URL(url.getPath().substring(0, pos)); String path = url.getPath().substring(pos + 2); final ZipIterator container = create(jarURL); ZipIterator zip = null; try { zip = create(filter); break; return create(url.openStream());
public static ZipIterator create(URL url) throws IOException, URISyntaxException { if (url.getProtocol().equals("file")) { return create(Utils.toFile(url)); } else if (url.getProtocol().equals("jar")) { int pos = url.getPath().lastIndexOf("!/"); URL jarURL = new URL(url.getPath().substring(0, pos)); String path = url.getPath().substring(pos + 2); final ZipIterator container = create(jarURL); ZipIterator zip = null; try { zip = create(filter); break; return create(url.openStream());
URL jarURL = new URL(url.getPath().substring(0, pos)); String path = url.getPath().substring(pos + 2); ZipIterator i = ZipIterator.create(jarURL); try { while (i.hasNext()) {
URL jarURL = new URL(url.getPath().substring(0, pos)); String path = url.getPath().substring(pos + 2); ZipIterator i = ZipIterator.create(jarURL); try { while (i.hasNext()) {