Class RuntimeLoader
java.lang.Object
org.wpilib.util.runtime.RuntimeLoader
Loads a native library at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns platform name.static voidloadLibrary(String libraryName) Loads a native library.
-
Method Details
-
getPlatformName
Returns platform name.- Returns:
- The current platform name.
- Throws:
IllegalStateException- Thrown if the operating system is unknown.
-
loadLibrary
Loads a native library.- Parameters:
libraryName- the name of the library to load.- Throws:
IOException- if the library fails to load
-