|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.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(java.net.URL url)
Return a new Locator in function of the URL type. |
abstract boolean |
hasDirectory(java.lang.String path)
Returns true when directory was found. |
abstract boolean |
hasFile(java.lang.String path)
Returns true when file was found. |
abstract java.util.List |
listContent(java.lang.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(java.lang.String path)
path
- the path to the file to look up
public abstract boolean hasDirectory(java.lang.String path)
path
- the path to the directory to look up
public abstract java.util.List listContent(java.lang.String path)
path
- the path to the directory where looking for files
public static Locator getLocator(java.net.URL url) throws java.io.IOException
JarFileLocator
and an URL pointing to a directory file will return a DirFileLocator
.
url
- the base URL
java.io.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 |