|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.plb4jedit.plb.PathBroker
Handles the PLB_PATH to search for includes.
| Constructor Summary | |
PathBroker(String plbpath,
String program)
Constructs a path broker for a path and a program |
|
| Method Summary | |
String[] |
getPathElements()
get elements of the PLB_PATH as String array. |
static void |
main(String[] args)
for testing: Gets a PLB_PATH and an include name as input and prints out where the include is found in the path |
File |
searchInclude(String include)
search in path elements according to their order for the given include name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PathBroker(String plbpath,
String program)
plbpath - general plb path as defined in env PLB_PATHprogram - absolute path of the actual program has priority over default path
+ programName itself, e.g. /opt/cvsroot/procars/utils/test.dbs| Method Detail |
public String[] getPathElements()
public File searchInclude(String include)
throws FileNotFoundException
include - include name without file suffix (.dbs)-
FileNotFoundException - if include is not found in any place in the path
public static void main(String[] args)
throws FileNotFoundException
args - PLB_PATH, include name without file-extension, e.g. nadrcd3 (but not nadrcd3.dbs)
FileNotFoundException - if include can not be found in path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||