Code example for ZipFile

Methods: getName

0
      } 
 
      @Override 
      public void process(ZipFile zf, ZipEntry ze) throws Exception {
        if (urls == null) urls = new Vector<URL>();
        urls.addElement(new URL("jar", null, -1, "file:" + zf.getName() + "!/" + name));
      } 
 
      @Override 
      public void process(File file) throws Exception {
        if (urls == null) urls = new Vector<URL>();
        urls.addElement(new URL("file", null, -1, file.getName()));
      } 
    }; 
 
    return getResourceInternal(name, findURL, true);
  } 
 
  private <T> T getResourceInternal(String name, Handler<T> h, boolean multiple) {
    if (name.startsWith(File.separator)) {
      name = name.substring(File.separator.length());