| |
|
| java.lang.Object org.objectweb.jonas_lib.loader.locator.Locator org.objectweb.jonas_lib.loader.locator.JarFileLocator
JarFileLocator | public class JarFileLocator extends Locator (Code) | | A JarfileLocator is used to look up for a file inside a Jar
archive. Works only for local jars.
author: Guillaume Sauthier |
Constructor Summary | |
public | JarFileLocator(URL jar) Construct a new JarFileLocator from an URL representing a Jar. |
JarFileLocator | public JarFileLocator(URL jar) throws IOException(Code) | | Construct a new JarFileLocator from an URL representing a Jar.
Parameters: jar - URL pointing to a Jar file throws: IOException - When URL is not a JarFile. |
hasDirectory | public boolean hasDirectory(String path)(Code) | | Returns true when directory was found.
Parameters: path - the path to the directory to look up true when directory was found, otherwise false. |
hasFile | public boolean hasFile(String path)(Code) | | Returns true when file was found.
Parameters: path - the path to the file to look up true when file was found, otherwise false. |
listContent | public List listContent(String path)(Code) | | Returns a list of filename stored in path.
Parameters: path - the path to the directory where looking for files a list of filename stored in path. |
|
|
|