|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.loader.locator.Locator
public abstract class Locator
A Locator is used to hide System specific
when looking for a file.
| Constructor Summary | |
|---|---|
Locator()
|
|
| Method Summary | |
|---|---|
static Locator |
getLocator(URL url)
Return a new Locator in function of the URL type. |
abstract boolean |
hasDirectory(String path)
Returns true when directory was found. |
abstract boolean |
hasFile(String path)
Returns true when file was found. |
abstract List |
listContent(String path)
Returns a list of filename stored in path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Locator()
| Method Detail |
|---|
public abstract boolean hasFile(String path)
path - the path to the file to look up
public abstract boolean hasDirectory(String path)
path - the path to the directory to look up
public abstract List listContent(String path)
path - the path to the directory where looking for files
public static Locator getLocator(URL url)
throws IOException
JarFileLocator
and an URL pointing to a directory file will return a DirFileLocator.
url - the base URL
IOException - when cannot find a specialized locator for the given URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||