com.sun.faces.facelets.util
public final class Classpath extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
EXTENSIONS_TO_EXCLUDE |
private static java.lang.String[] |
PREFIXES_TO_EXCLUDE |
Constructor and Description |
---|
Classpath() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.jar.JarFile |
getAlternativeJarFile(java.lang.String urlFile) |
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.
|
private static java.io.InputStream |
getInputStream(java.net.URL url)
Open input stream from url.
|
private static java.lang.String |
join(java.lang.String[] tokens,
boolean excludeLast)
Join tokens, exlude last if param equals true.
|
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 boolean |
searchDir(java.util.Set result,
java.io.File file,
java.lang.String suffix) |
private static void |
searchFromURL(java.util.Set result,
java.lang.String prefix,
java.lang.String suffix,
java.net.URL url)
Search from URL.
|
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) |
private static final java.lang.String[] PREFIXES_TO_EXCLUDE
private static final java.lang.String[] EXTENSIONS_TO_EXCLUDE
public static java.net.URL[] search(java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
java.io.IOException
public static java.net.URL[] search(java.lang.ClassLoader cl, java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
java.io.IOException
private static boolean searchDir(java.util.Set result, java.io.File file, java.lang.String suffix) throws java.io.IOException
java.io.IOException
private static void searchFromURL(java.util.Set result, java.lang.String prefix, java.lang.String suffix, java.net.URL url) throws java.io.IOException
result
- the result urlsprefix
- the current prefixsuffix
- the suffix to matchurl
- the current url to start searchjava.io.IOException
- for any errorprivate static java.lang.String join(java.lang.String[] tokens, boolean excludeLast)
tokens
- the tokensexcludeLast
- do we exclude last tokenprivate static java.io.InputStream getInputStream(java.net.URL url)
url
- the url to openprivate static java.util.jar.JarFile getAlternativeJarFile(java.net.URL url) throws java.io.IOException
java.io.IOException
static java.util.jar.JarFile getAlternativeJarFile(java.lang.String urlFile) throws java.io.IOException
java.io.IOException
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
java.io.IOException
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.