| |
|
| java.lang.Object org.objectweb.jonas_lib.loader.locator.Locator org.objectweb.jonas_lib.loader.locator.DirLocator
DirLocator | public class DirLocator extends Locator (Code) | | A DirLocator is used to look up for a file
inside a directory.
author: Guillaume Sauthier |
Constructor Summary | |
public | DirLocator(URL jar) Construct a new DirLocator from an URL pointing to a directory. |
DirLocator | public DirLocator(URL jar) throws IOException(Code) | | Construct a new DirLocator from an URL pointing to a directory.
Parameters: jar - URL pointing to a directory. throws: IOException - When |
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. |
|
|
|