Package org.crsh.util

Examples of org.crsh.util.ZipIterator


    }
    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);
      ZipIterator i = ZipIterator.create(jarURL);
      try {
        while (i.hasNext()) {
          ZipEntry entry = i.next();
          if (entry.getName().startsWith(path)) {
            addEntry(url, entry.getName().substring(path.length()), i.getStreamFactory());
          }
        }
      }
      finally {
        Utils.close(i);
View Full Code Here

TOP

Related Classes of org.crsh.util.ZipIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.