Classes | Public Member Functions

alma.acs.eclipse.utils.jar.JarFolder Class Reference

List of all members.

Classes

class  JarClasses
class  JarFileNameFilter

Public Member Functions

 JarFolder (File folder)
File[] getJarFiles ()
String[] getJars ()
File getJar (String name)
boolean containsJar (String jarname)
Collection< JarClassesgetJarsContainingClass (String javaClass) throws Exception
String getAbsolutePath ()

Detailed Description

JarFolder holds a folder of jar files allowing to perform the most common operation.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.eclipse.utils.jar.JarFolder.JarFolder ( File  folder  ) 

Member Function Documentation

boolean alma.acs.eclipse.utils.jar.JarFolder.containsJar ( String  jarname  ) 

Check if the folder contains a given jar file.

Parameters:
jarname A jar file like lc.jar
Returns:
true if the folder contains the passed jar

References alma.acs.eclipse.utils.jar.JarFolder.getJarFiles().

String alma.acs.eclipse.utils.jar.JarFolder.getAbsolutePath (  ) 

Return the absolute path of this folder of jars.

Returns:
File alma.acs.eclipse.utils.jar.JarFolder.getJar ( String  name  ) 

Get the File of the jar with the given name.

Parameters:
name The name of the jar like for example lc.jar
Returns:
The File of the jar or null if the jar does not exist in the folder

References alma.acs.eclipse.utils.jar.JarFolder.getJarFiles().

Referenced by alma.acs.eclipse.utils.jar.AcsFolders.getJar().

File [] alma.acs.eclipse.utils.jar.JarFolder.getJarFiles (  ) 
String [] alma.acs.eclipse.utils.jar.JarFolder.getJars (  ) 

Return the list of jar names in folder. A jar name can be for example lc.jar.

Returns:
The list of jars in the folder

References alma.acs.eclipse.utils.jar.JarFolder.getJarFiles().

Collection<JarClasses> alma.acs.eclipse.utils.jar.JarFolder.getJarsContainingClass ( String  javaClass  )  throws Exception

Return a list of jar files containing a given class.

The class name can be the whole name of a class or the beginning of its name. For example if javaClass is LoggingClient, this class returns both LoggingClient and LoggingClientText from lc.jar.

Parameters:
javaClassName The name of a class or a the beginning of its name
Returns:
A list of jar names containing the (partial) name of the class or null if no classes in the jars match with the passed partial name

References alma.acs.eclipse.utils.jar.JarFolder.getJarFiles().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties