Examples of ZipDir


Examples of org.reflections.vfs.ZipDir

    File file = new File(url.toExternalForm());

    if (file.isDirectory())
      return new SystemDir(url);
    else
      return new ZipDir(url);
  }
View Full Code Here

Examples of org.reflections.vfs.ZipDir

        File file = new File(url.toExternalForm());

        if (file.isDirectory())
            return new SystemDir(url);
        else
            return new ZipDir(url);
    }
View Full Code Here

Examples of org.reflections.vfs.ZipDir

        // delegate unpacked archives to SystemDir handler
        if (deployment.isDirectory())
            return new SystemDir(toUrl("file:/"+deployment.getAbsolutePath()));

        // if it's a file delegate to ZipDir handler
        ZipDir delegate = new ZipDir(toUrl("file:/" + deployment.getAbsolutePath()));
        return delegate;
    }
View Full Code Here

Examples of org.reflections.vfs.ZipDir

      // delegate unpacked archives to SystemDir handler
      if (deployment.isDirectory())
        return new SystemDir(targetURL);

      // if it's a file delegate to ZipDir handler
      return new ZipDir(targetURL);
    }
    catch (MalformedURLException e) {
      throw new RuntimeException("Invalid URL", e);
    }
  }
View Full Code Here

Examples of org.reflections.vfs.ZipDir

      // delegate unpacked archives to SystemDir handler
      if (deployment.isDirectory())
        return new SystemDir(targetURL);

      // if it's a file delegate to ZipDir handler
      return new ZipDir(targetURL);
    }
    catch (MalformedURLException e) {
      throw new RuntimeException("Invalid URL", e);
    }
  }
View Full Code Here

Examples of org.reflections.vfs.ZipDir

            IVfsBundleFactory vfsBundleFactory = (IVfsBundleFactory) bundleContext.getService(serviceReference);
            VfsBundle bundle = vfsBundleFactory.getVfsBundle(url);
            File vfsFile = bundle.asFile(url);
            try {
                if (vfsFile.isFile()) {
                    return new ZipDir(vfsFile.toURI().toURL());
                }
                if (vfsFile.isDirectory()) {
                    return new SystemDir(vfsFile.toURI().toURL());
                }
                return null;
View Full Code Here

Examples of org.reflections.vfs.ZipDir

      }

      Vfs.Dir createDir(java.io.File file) {
        try {
          return file.exists() && file.canRead() ? file.isDirectory() ? new SystemDir(
              file) : new ZipDir(new JarFile(file))
              : null;
        } catch (IOException e) {
          e.printStackTrace();
        }
        return null;
View Full Code Here

Examples of org.reflections.vfs.ZipDir

        HttpDir(URL url) {
            this.path = url.toExternalForm();
            try {file = downloadTempLocally(url);}
            catch (IOException e) {throw new RuntimeException(e);}
            try { zipDir = new ZipDir(new JarFile(file)); } catch (Exception e) { throw new RuntimeException(e); }
        }
View Full Code Here

Examples of org.reflections.vfs.ZipDir

        // delegate unpacked archives to SystemDir handler
        if (deployment.isDirectory())
            return new SystemDir(toUrl(deployment.getAbsolutePath()));

        // if it's a file delegate to ZipDir handler
        ZipDir delegate = new ZipDir(toUrl("file:/" + deployment.getAbsolutePath()));
        return delegate;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.