Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets.util
Class Classpath  view Classpath download Classpath.java

java.lang.Object
  extended bycom.sun.facelets.util.Classpath

public final class Classpath
extends java.lang.Object

Version:
$Id: Classpath.java,v 1.5 2006/01/14 06:46:14 jhook Exp $

Constructor Summary
Classpath()
           
 
Method Summary
private static java.util.jar.JarFile getAlternativeJarFile(java.net.URL url)
          For URLs to JARs that do not use JarURLConnection - allowed by the servlet spec - attempt to produce a JarFile object all the same.
static java.net.URL[] search(java.lang.ClassLoader cl, java.lang.String prefix, java.lang.String suffix)
           
static java.net.URL[] search(java.lang.String prefix, java.lang.String suffix)
           
private static void searchDir(java.util.Set result, java.io.File file, java.lang.String suffix)
           
private static void searchJar(java.lang.ClassLoader cl, java.util.Set result, java.util.jar.JarFile file, java.lang.String prefix, java.lang.String suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Classpath

public Classpath()
Method Detail

search

public static java.net.URL[] search(java.lang.String prefix,
                                    java.lang.String suffix)
                             throws java.io.IOException

search

public static java.net.URL[] search(java.lang.ClassLoader cl,
                                    java.lang.String prefix,
                                    java.lang.String suffix)
                             throws java.io.IOException

searchDir

private static void searchDir(java.util.Set result,
                              java.io.File file,
                              java.lang.String suffix)
                       throws java.io.IOException

getAlternativeJarFile

private static java.util.jar.JarFile getAlternativeJarFile(java.net.URL url)
                                                    throws java.io.IOException
For URLs to JARs that do not use JarURLConnection - allowed by the servlet spec - attempt to produce a JarFile object all the same. Known servlet engines that function like this include Weblogic and OC4J. This is not a full solution, since an unpacked WAR or EAR will not have JAR "files" as such.


searchJar

private static void searchJar(java.lang.ClassLoader cl,
                              java.util.Set result,
                              java.util.jar.JarFile file,
                              java.lang.String prefix,
                              java.lang.String suffix)
                       throws java.io.IOException