Package edu.wpi.first.wpiutil
Class RuntimeLoader<T>
- java.lang.Object
-
- edu.wpi.first.wpiutil.RuntimeLoader<T>
-
public final class RuntimeLoader<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description RuntimeLoader(String libraryName, String extractionRoot, Class<T> cls)Creates a new library loader.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetDefaultExtractionRoot()Gets the default extration root location (~/.wpilib/nativecache).voidloadLibrary()Loads a native library.voidloadLibraryHashed()Load a native library by directly hashing the file.
-
-
-
Method Detail
-
getDefaultExtractionRoot
public static String getDefaultExtractionRoot()
Gets the default extration root location (~/.wpilib/nativecache).
-
loadLibrary
public void loadLibrary() throws IOExceptionLoads a native library.- Throws:
IOException
-
loadLibraryHashed
public void loadLibraryHashed() throws IOExceptionLoad a native library by directly hashing the file.- Throws:
IOException
-
-