|
|||||||||
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.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(java.net.URL jar)
Construct a new JarFileLocator from an URL representing a Jar. |
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 JarFileLocator(java.net.URL jar) throws java.io.IOException
jar
- URL pointing to a Jar file
java.io.IOException
- When URL is not a JarFile.Method 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 |