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 String
getDefaultExtractionRoot()
Gets the default extration root location (~/.wpilib/nativecache).void
loadLibrary()
Loads a native library.void
loadLibraryHashed()
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 IOException
Loads a native library.- Throws:
IOException
-
loadLibraryHashed
public void loadLibraryHashed() throws IOException
Load a native library by directly hashing the file.- Throws:
IOException
-
-