|
|||||||||
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 org.objectweb.jonas_lib.loader.locator.DirLocator
public class DirLocator
A DirLocator
is used to look up for a file
inside a directory.
Constructor Summary | |
---|---|
DirLocator(java.net.URL jar)
Construct a new DirLocator from an URL pointing to a directory. |
Method Summary | |
---|---|
boolean |
hasDirectory(java.lang.String path)
Returns true when directory was found. |
boolean |
hasFile(java.lang.String path)
Returns true when file was found. |
java.util.List |
listContent(java.lang.String path)
Returns a list of filename stored in path. |
Methods inherited from class org.objectweb.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(java.net.URL jar) throws java.io.IOException
jar
- URL pointing to a directory.
java.io.IOException
- WhenMethod Detail |
---|
public boolean hasFile(java.lang.String path)
hasFile
in class Locator
path
- the path to the file to look up
public boolean hasDirectory(java.lang.String path)
hasDirectory
in class Locator
path
- the path to the directory to look up
public java.util.List listContent(java.lang.String path)
listContent
in class Locator
path
- 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 |