| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.util.Lib
public final class Lib
Lib contains some utils for dealing with the system library path. (This is the library dealing with stuff like DLL's );
| Field Summary | |
|---|---|
static String | 
TMPDIR
 | 
| Constructor Summary | |
|---|---|
private  | 
Lib()
 | 
| Method Summary | |
|---|---|
static void | 
addLibraryPath(String path)
Attempt to add the specified path to the java library path, and enforces this java library path to be reloaded when the next System.loadLibrary is executed.  | 
static List<String> | 
extractIfRunningFrom(String regex)
extracts java.library.path files, if running from a code source that matches the specified regular expression  | 
static List<String> | 
extractIfRunningFrom(String regex,
                     boolean addToLibraryPath)
extracts java.library.path files, if running from a code source that matches the specified regular expression  | 
static List<String> | 
extractIfRunningFrom(String regex,
                     String extractDir)
extracts java.library.path files, if running from a code source that matches the specified regular expression, and adds them to the library path  | 
static List<String> | 
extractIfRunningFrom(String regex,
                     String extractDir,
                     boolean addToLibraryPath)
extracts java.library.path files, if running from a code source that matches the specified regular expression  | 
static void | 
extractLib(boolean addToLibraryPath)
UnJars dll files from the jar file into java.io.tmpdir, and adds them to the java.library.path.  | 
static List<String> | 
extractLib(Class<?> cl,
           boolean addToLibraryPath)
UnJars dll files from the jar file into java.io.tmpdir, and adds them to the java.library.path.  | 
static List<String> | 
extractLib(Class<?> cl,
           String extractDir,
           boolean addToLibraryPath)
UnJars dll files from the jar file, and adds them to the java.library.path.  | 
static List<String> | 
extractLib(String extractDir,
           boolean addToLibraryPath)
UnJars dll files from the jar file where hmi.util.Lib is found, and adds them to the java.library.path.  | 
static List<String> | 
extractLib(String jar,
           String extractDir,
           boolean addToLibraryPath)
UnJars dll files from the jar file, and adds them to the java.library.path.  | 
static String | 
getCodeSourceLocation(Class<?> cl)
Return the location of class or jar file from which the specified Class is running.  | 
static String | 
getJarName(String jarpath)
 | 
static boolean | 
isRunningFrom(Class<?> cl,
              String regex)
Checks whether the result of getCodeSourceLocation from the specified Class ends with a String matching the specified regular expression.  | 
static boolean | 
isRunningFrom(String regex)
Checks whether the result of getCodeSourceLocation from this hmi.util.Lib class ends with a String matching the specified regular expression.  | 
static void | 
startProc(String jarName,
          String libPath,
          String mainClass,
          List<String> params)
Starts up a Java program, pacakges within a jar file, within a new and separate Java process.  | 
static boolean | 
startProcessIfRunningFrom(String regex,
                          String mainClass,
                          List<String> params)
Checks whether this Lib class is being accessed from a jar file that matches the specified regular expression.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String TMPDIR
| Constructor Detail | 
|---|
private Lib()
| Method Detail | 
|---|
public static void addLibraryPath(String path)
public static boolean isRunningFrom(String regex)
public static boolean isRunningFrom(Class<?> cl,
                                    String regex)
public static String getCodeSourceLocation(Class<?> cl)
public static String getJarName(String jarpath)
public static List<String> extractIfRunningFrom(String regex)
public static List<String> extractIfRunningFrom(String regex,
                                                boolean addToLibraryPath)
public static List<String> extractIfRunningFrom(String regex,
                                                String extractDir,
                                                boolean addToLibraryPath)
public static List<String> extractIfRunningFrom(String regex,
                                                String extractDir)
public static void extractLib(boolean addToLibraryPath)
public static List<String> extractLib(Class<?> cl,
                                      boolean addToLibraryPath)
public static List<String> extractLib(String extractDir,
                                      boolean addToLibraryPath)
public static List<String> extractLib(Class<?> cl,
                                      String extractDir,
                                      boolean addToLibraryPath)
public static List<String> extractLib(String jar,
                                      String extractDir,
                                      boolean addToLibraryPath)
public static void startProc(String jarName,
                             String libPath,
                             String mainClass,
                             List<String> params)
public static boolean startProcessIfRunningFrom(String regex,
                                                String mainClass,
                                                List<String> params)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||