org.objectweb.jonas_lib.loader.locator.JarFileLocator Class Reference

Inherits org.objectweb.jonas_lib.loader.locator.Locator.

Inheritance diagram for org.objectweb.jonas_lib.loader.locator.JarFileLocator:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_lib.loader.locator.JarFileLocator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JarFileLocator (URL jar) throws IOException
boolean hasFile (String path)
boolean hasDirectory (String path)
List listContent (String path)

Detailed Description

A JarfileLocator is used to look up for a file inside a Jar archive. Works only for local jars.

Author:
Guillaume Sauthier

Definition at line 42 of file JarFileLocator.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.loader.locator.JarFileLocator.JarFileLocator URL  jar  )  throws IOException
 

Construct a new JarFileLocator from an URL representing a Jar.

Parameters:
jar URL pointing to a Jar file
Exceptions:
IOException When URL is not a JarFile.

Definition at line 56 of file JarFileLocator.java.


Member Function Documentation

boolean org.objectweb.jonas_lib.loader.locator.JarFileLocator.hasDirectory String  path  )  [virtual]
 

Returns true when directory was found.

Parameters:
path the path to the directory to look up
Returns:
true when directory was found, otherwise false.

Implements org.objectweb.jonas_lib.loader.locator.Locator.

Definition at line 81 of file JarFileLocator.java.

boolean org.objectweb.jonas_lib.loader.locator.JarFileLocator.hasFile String  path  )  [virtual]
 

Returns true when file was found.

Parameters:
path the path to the file to look up
Returns:
true when file was found, otherwise false.

Implements org.objectweb.jonas_lib.loader.locator.Locator.

Definition at line 68 of file JarFileLocator.java.

List org.objectweb.jonas_lib.loader.locator.JarFileLocator.listContent String  path  )  [virtual]
 

Returns a list of filename stored in path.

Parameters:
path the path to the directory where looking for files
Returns:
a list of filename stored in path.

Implements org.objectweb.jonas_lib.loader.locator.Locator.

Definition at line 101 of file JarFileLocator.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:09 2005 for JOnAS by  doxygen 1.3.9.1