|
||||||||||
| 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
org.ow2.jonas.lib.loader.locator.DirLocator
public class DirLocator
A DirLocator is used to look up for a file
inside a directory.
| Constructor Summary | |
|---|---|
DirLocator(URL jar)
Construct a new DirLocator from an URL pointing to a directory. |
|
| Method Summary | |
|---|---|
boolean |
hasDirectory(String path)
Returns true when directory was found. |
boolean |
hasFile(String path)
Returns true when file was found. |
List |
listContent(String path)
Returns a list of filename stored in path. |
| Methods inherited from class org.ow2.jonas.lib.loader.locator.Locator |
|---|
getLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirLocator(URL jar)
throws IOException
jar - URL pointing to a directory.
IOException - When| Method Detail |
|---|
public boolean hasFile(String path)
hasFile in class Locatorpath - the path to the file to look up
public boolean hasDirectory(String path)
hasDirectory in class Locatorpath - the path to the directory to look up
public List listContent(String path)
listContent in class Locatorpath - the path to the directory where looking for files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||