|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.util.ClassPath
This class offers methods useful when dealing with classpaths. For now it only contains a method to get all resources from the classpath (and any jar files that may be contained within the classpath). This was taken from the java developers forum.
| Constructor Summary | |
ClassPath()
Constructor for the ClassPath object |
|
| Method Summary | |
private java.util.ArrayList |
generateDirList(java.io.File classpath,
java.io.File dir)
Recursively lists all files in a given dir. |
java.lang.String[] |
listSystemResources()
Returns a list of all files in the classpath, or files in jar files contained in the classpath. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClassPath()
| Method Detail |
private java.util.ArrayList generateDirList(java.io.File classpath,
java.io.File dir)
dir - The directory to search for files, including subdirsclasspath - Description of the Parameter
public java.lang.String[] listSystemResources()
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||