Package com.google.opengse.io

Examples of com.google.opengse.io.FileCollectionCollection


    return new SynchronizedFileCollection(fcc);
  }

  public static synchronized FileCollection getFileCollection() {
    if (jdkCollection == null) {
      jdkCollection = addJdkClasses(new FileCollectionCollection());
    }
    return jdkCollection;
  }
View Full Code Here


   */
  private static FileCollection getClasspathAsFileCollectionFromClasspath(
      String cp)
      throws IOException {
    StringTokenizer tokenizer = new StringTokenizer(cp, File.pathSeparator);
    FileCollectionCollection collection = new FileCollectionCollection();
    while (tokenizer.hasMoreTokens()) {
      collection.addJarOrDirectory(new File(tokenizer.nextToken()));
    }
    return collection;
  }
View Full Code Here

  /**
   * Transforms a URLClassLoader into a FileCollection.
   */
  private static FileCollection toFileCollection(URLClassLoader urlcl)
      throws IOException {
    FileCollectionCollection collection = new FileCollectionCollection();
    for (URL url : urlcl.getURLs()) {
      collection.addJarOrDirectory(new File(url.getFile()));
    }
    return collection;
  }
View Full Code Here

TOP

Related Classes of com.google.opengse.io.FileCollectionCollection

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.