|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.system.classloader.locator.LocatorAbstract
public abstract class LocatorAbstract
A Locator is used to hide System specific when looking for a
file.
| Constructor Summary | |
|---|---|
LocatorAbstract()
|
|
| Method Summary | |
|---|---|
static LocatorAbstract |
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<java.lang.String> |
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 LocatorAbstract()
| 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<java.lang.String> listContent(java.lang.String path)
path - the path to the directory where looking for files
public static LocatorAbstract 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 | |||||||||