| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | URLClassPath.
Nested class used to represent a loader of resources and classes from a base URL. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private final URLStreamHandler | |
| private static final String | |
| private static final JavaNetURLAccess | |
| private final HashMap | |
| private final ArrayList | |
| private final ArrayList | |
| private int | |
| private final ArrayList | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | URLClassPath(URL[]
the directory and JAR file URLs to search for classes
and resources urls, URLStreamHandlerFactory the URLStreamHandlerFactory to use when creating new URLs factory)Creates a new URLClassPath for the given URLs. |
| public | |
| pack-priv | URLClassPath(String
the class path string cp, boolean indicates if empty elements are ignored or
treated as the current working directory skipEmptyElements)Constructs a URLClassPath from a class path string. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public synchronized void | |
| public synchronized List | |
| private static void | |
| public URL | Returns: aURL for the resource, or null
if the resource could not be found.the name of the resource name)Finds the resource with the specified name on the URL search path or null if not found. |
| public Enumeration | Returns: an Enumeration of all the urls having the specified namethe resource name name)Finds all resources on the URL search path with the given name. |
| private synchronized URLClassPath. | |
| private URLClassPath. | |
| public Resource | Returns: the Resource, or null if not foundthe name of the Resource name)Finds the first Resource on the URL search path which has the specified name. |
| public Enumeration | Returns: an Enumeration of all the resources having the specified namethe resource name name)Finds all resources on the URL search path with the given name. |
| public URL[] | |
| private static boolean | |
| private URL | |
| private static URL |
| closed | back to summary |
|---|---|
| private boolean closed | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| DEBUG_CP_URL_CHECK | back to summary |
|---|---|
| private static final boolean DEBUG_CP_URL_CHECK | |
| DISABLE_CP_URL_CHECK | back to summary |
|---|---|
| private static final boolean DISABLE_CP_URL_CHECK | |
| JAR_CHECKING_ENABLED | back to summary |
|---|---|
| private static final boolean JAR_CHECKING_ENABLED | |
| jarHandler | back to summary |
|---|---|
| private final URLStreamHandler jarHandler | |
| JAVA_VERSION | back to summary |
|---|---|
| private static final String JAVA_VERSION | |
| JNUA | back to summary |
|---|---|
| private static final JavaNetURLAccess JNUA | |
| lmap | back to summary |
|---|---|
| private final HashMap<String, URLClassPath. | |
| loaders | back to summary |
|---|---|
| private final ArrayList<URLClassPath. | |
| manifestClassPath | back to summary |
|---|---|
| private final ArrayList<URL> manifestClassPath | |
| nextURL | back to summary |
|---|---|
| private int nextURL | |
| searchPath | back to summary |
|---|---|
| private final ArrayList<URL> searchPath | |
| USER_AGENT_JAVA_VERSION | back to summary |
|---|---|
| private static final String USER_AGENT_JAVA_VERSION | |
| URLClassPath | back to summary |
|---|---|
| public URLClassPath(URL[] urls, URLStreamHandlerFactory factory) Creates a new URLClassPath for the given URLs. The URLs will be searched in the order specified for classes and resources. A URL ending with a '/' is assumed to refer to a directory. Otherwise, the URL is assumed to refer to a JAR file.
| |
| URLClassPath | back to summary |
|---|---|
| public URLClassPath(URL[] urls) | |
| URLClassPath | back to summary |
|---|---|
| pack-priv URLClassPath(String cp, boolean skipEmptyElements) Constructs a URLClassPath from a class path string. API Note Used to create the application class path.
| |
| addFile | back to summary |
|---|---|
| public void addFile(String s) Appends the specified file path as a file URL to the search path. | |
| addManifestClassPaths | back to summary |
|---|---|
| private void addManifestClassPaths(URL[] urls) | |
| addURL | back to summary |
|---|---|
| public synchronized void addURL(URL url) Appends the specified URL to the search path of directory and JAR file URLs from which to load classes and resources. If the URL specified is null or is already in the list of URLs, then invoking this method has no effect. | |
| closeLoaders | back to summary |
|---|---|
| public synchronized List | |
| closeQuietly | back to summary |
|---|---|
| private static void closeQuietly(final URLClassPath. | |
| findResource | back to summary |
|---|---|
| public URL findResource(String name) Finds the resource with the specified name on the URL search path or null if not found. | |
| findResources | back to summary |
|---|---|
| public Enumeration Finds all resources on the URL search path with the given name. Returns an enumeration of the URL objects.
| |
| getLoader | back to summary |
|---|---|
| private synchronized URLClassPath. | |
| getLoader | back to summary |
|---|---|
| private URLClassPath. | |
| getResource | back to summary |
|---|---|
| public Resource getResource(String name) Finds the first Resource on the URL search path which has the specified name. Returns null if no Resource could be found. | |
| getResources | back to summary |
|---|---|
| public Enumeration Finds all resources on the URL search path with the given name. Returns an enumeration of the Resource objects.
| |
| getURLs | back to summary |
|---|---|
| public URL[] getURLs() Returns the original search path of URLs. | |
| isDefaultJarHandler | back to summary |
|---|---|
| private static boolean isDefaultJarHandler(URL u) | |
| nextURL | back to summary |
|---|---|
| private URL nextURL() | |
| toFileURL | back to summary |
|---|---|
| private static URL toFileURL(String s) Returns a file URL for the given file path. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv URL | |
| pack-priv Resource |
| dir | back to summary |
|---|---|
| private final File dir | |
| normalizedBase | back to summary |
|---|---|
| private final URL normalizedBase | |
| FileLoader | back to summary |
|---|---|
| private FileLoader(URL url) throws IOException | |
| findResource | back to summary |
|---|---|
| pack-priv URL findResource(final String name) Overrides jdk.
| |
| getResource | back to summary |
|---|---|
| pack-priv Resource getResource(final String name) Overrides jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final URL | |
| private JarFile | |
| private static final JavaUtilZipFileAccess |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static JarFile | |
| public void | close()
Overrides jdk. Implements java. Closes this stream and releases any system resources associated with it. |
| pack-priv Resource | |
| private void | |
| pack-priv URL | |
| pack-priv URL[] | |
| private JarFile | |
| pack-priv Resource | |
| private boolean | |
| pack-priv static boolean | |
| private static URL | |
| private static URL[] | |
| pack-priv static URL | |
| pack-priv static URL | Returns: the resolved URL or null if the input is an absolute URL with a scheme other than file (ignoring case)Attempt to return a file URL by resolving input against a base file URL. |
| pack-priv static URL | Returns: the resolved URL or nullAttempt to return a URL by resolving input against a base URL. |
| closed | back to summary |
|---|---|
| private boolean closed | |
| csu | back to summary |
|---|---|
| private final URL csu | |
| jar | back to summary |
|---|---|
| private JarFile jar | |
| zipAccess | back to summary |
|---|---|
| private static final JavaUtilZipFileAccess zipAccess | |
| JarLoader | back to summary |
|---|---|
| private JarLoader(URL url, URLStreamHandler jarHandler) throws IOException | |
| checkJar | back to summary |
|---|---|
| pack-priv static JarFile checkJar(JarFile jar) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides jdk. Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| createResource | back to summary |
|---|---|
| pack-priv Resource createResource(final String name, final JarEntry entry) | |
| ensureOpen | back to summary |
|---|---|
| private void ensureOpen() throws IOException | |
| findResource | back to summary |
|---|---|
| pack-priv URL findResource(final String name) Overrides jdk.
| |
| getClassPath | back to summary |
|---|---|
| pack-priv URL[] getClassPath() throws IOException Overrides jdk.
| |
| getJarFile | back to summary |
|---|---|
| private JarFile getJarFile(URL url) throws IOException | |
| getResource | back to summary |
|---|---|
| pack-priv Resource getResource(final String name) Overrides jdk.
| |
| isOptimizable | back to summary |
|---|---|
| private boolean isOptimizable(URL url) | |
| isRelative | back to summary |
|---|---|
| pack-priv static boolean isRelative(String child) Returns true if the given input is a relative URI. | |
| newURL | back to summary |
|---|---|
private static URL newURL(String protocol, String host, int port, String file, URLStreamHandler handler) throws MalformedURLException
| |
| parseClassPath | back to summary |
|---|---|
| private static URL[] parseClassPath(URL base, String value) throws MalformedURLException | |
| tryResolve | back to summary |
|---|---|
| pack-priv static URL tryResolve(URL base, String input) throws MalformedURLException | |
| tryResolveFile | back to summary |
|---|---|
| pack-priv static URL tryResolveFile(URL base, String input) throws MalformedURLException Attempt to return a file URL by resolving input against a base file URL.
| |
| tryResolveNonFile | back to summary |
|---|---|
| pack-priv static URL tryResolveNonFile(URL base, String input) throws MalformedURLException Attempt to return a URL by resolving input against a base URL. Returns null if the resolved URL is not contained by the base URL.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| pack-priv URL | |
| pack-priv final URL | |
| pack-priv URL[] | |
| pack-priv Resource |
| base | back to summary |
|---|---|
| private final URL base | |
| jarfile | back to summary |
|---|---|
| private JarFile jarfile | |
| Loader | back to summary |
|---|---|
| pack-priv Loader(URL url) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| findResource | back to summary |
|---|---|
| pack-priv URL findResource(final String name) | |
| getBaseURL | back to summary |
|---|---|
| pack-priv final URL getBaseURL() | |
| getClassPath | back to summary |
|---|---|
| pack-priv URL[] getClassPath() throws IOException | |
| getResource | back to summary |
|---|---|
| pack-priv Resource getResource(final String name) | |