|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.connector.ConnectorUtils
public final class ConnectorUtils
Connector helper class. Generic helper methods for all connectors.
| Method Summary | |
|---|---|
static boolean |
checkLibraryInPath(String libFilename)
Check if a lib file is to be found by the JVM. |
static void |
checkNotNull(String name,
Object value)
Check an object if its not null. |
static boolean |
deleteDir(File dir)
Deletes all files and subdirectories under dir. |
static boolean |
extractFromJar(String filename,
String destinationDirectory)
Extract a file for a jarfile on the classpath. |
static boolean |
extractFromJar(String searchString,
String filename,
String destinationDirectory)
Extract a file from a jarfile on the classpath. |
static boolean |
extractFromJarToTemp(String filename)
Extract a file for a jarfile on the classpath. |
static boolean |
isInJar(String searchString)
Search for a file in the jars of the classpath, return true if found. |
static void |
loadLibrary(String libraryName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void checkNotNull(String name,
Object value)
name - Name of the object, used in the exception message.value - The object to check.public static boolean extractFromJarToTemp(String filename)
System.getProperty("java.io.tmpdir").
filename - The file to search and extract.
public static boolean extractFromJar(String filename,
String destinationDirectory)
filename - The file to search and extract.destinationDirectory - The directory to place it in.
public static boolean extractFromJar(String searchString,
String filename,
String destinationDirectory)
searchString - The path+filename to search for.filename - The file to search and extract.destinationDirectory - The directory to place it in.
public static boolean isInJar(String searchString)
searchString - The path+filename to search for.
public static boolean checkLibraryInPath(String libFilename)
libFilename - the filename.
public static boolean deleteDir(File dir)
dir - The directory to delete.
public static void loadLibrary(String libraryName)
throws LoadLibraryException
LoadLibraryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||