|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.ow2.jonas.lib.cpmanager.JarList
public class JarList
JOnAS Jar list This class provides a way for managing the class-path dependency libraries.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
JarList()
Construct an instance of a JarList |
|
JarList(String[] strs)
Construct an instance of a JarList |
|
JarList(StringTokenizer st)
Construct an instance of a JarList |
|
| Method Summary | |
|---|---|
void |
add(String fileName)
Add the specified file to the current list. |
URL[] |
getURLs(String dirName)
Get the URLs of all the JAR file list append to dirName. |
void |
merge(JarList jarList)
Merge the specified JarList to the current JarList without adding duplicate entry. |
void |
remove(JarList jarList)
Remove all the entries contained in the jarList to the current jarList. |
void |
setRelativePath(String path)
Set the relative path of the current list. |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public JarList()
public JarList(StringTokenizer st)
st - a String tokenizerpublic JarList(String[] strs)
strs - an array of files| Method Detail |
|---|
public void add(String fileName)
fileName - the name of the file to add.
public URL[] getURLs(String dirName)
throws JarListException
dirName - the name of the directory where we append the files (URL format).
JarListException - if url are malformedpublic void merge(JarList jarList)
jarList - the list to merge.public void remove(JarList jarList)
jarList - the jarList to remove.public void setRelativePath(String path)
path - the path for set the relative path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||