|
||||||||||
| 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.JarFileLocator
public class JarFileLocator
A JarfileLocator is used to look up for a file inside a Jar
archive. Works only for local jars.
| Constructor Summary | |
|---|---|
JarFileLocator(URL jar)
Construct a new JarFileLocator from an URL representing a Jar. |
|
| 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 JarFileLocator(URL jar)
throws IOException
jar - URL pointing to a Jar file
IOException - When URL is not a JarFile.| 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 | |||||||||