| java.lang.Object org.objectweb.jonas_lib.loader.locator.Locator
All known Subclasses: org.objectweb.jonas_lib.loader.locator.JarFileLocator, org.objectweb.jonas_lib.loader.locator.DirLocator,
Locator | abstract public class Locator (Code) | | A Locator is used to hide System specific
when looking for a file.
author: Guillaume Sauthier |
getLocator | public static Locator getLocator(URL url) throws IOException(Code) | | Return a new Locator in function of the URL type.
an URL pointing to a jar file will return a JarFileLocator
and an URL pointing to a directory file will return a DirFileLocator .
Parameters: url - the base URL a new Locator in function of the URL type. throws: IOException - when cannot find a specialized locator for the given URL. |
hasDirectory | abstract 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 | abstract 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 | abstract 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. |
|
|