| |
|
| java.lang.Object org.objectweb.jonas_lib.loader.factory.URLFactory org.objectweb.jonas_lib.loader.factory.JarURLFactory
JarURLFactory | public class JarURLFactory extends URLFactory (Code) | | A JarURLFactory is used to create URLs
from a JarURL (jar:XXX) and paths.
Example :
base : file:lib.jar
path : META-INF/directory/
results : jar:file:lib.jar!/META-INF/directory/
author: Guillaume Sauthier |
Constructor Summary | |
public | JarURLFactory(URL url) Create a new JarURLFactory using the specified base URL.
Parameters: url - the base url. |
Method Summary | |
public URL | getURL(String path) Returns a new URL basically adding path to the base URL.
returns the base URL when "" is used as parameter.
Parameters: path - the path to add to the URL. |
JarURLFactory | public JarURLFactory(URL url)(Code) | | Create a new JarURLFactory using the specified base URL.
Parameters: url - the base url. (must be a Jar archive) |
getURL | public URL getURL(String path) throws IOException(Code) | | Returns a new URL basically adding path to the base URL.
returns the base URL when "" is used as parameter.
Parameters: path - the path to add to the URL. (must not start with "/") a new URL of the form jar:!/. throws: IOException - when created URL is invalid. |
|
|
|