Class RuntimeLoader<T>


  • public final class RuntimeLoader<T>
    extends Object
    • Constructor Detail

      • RuntimeLoader

        public RuntimeLoader​(String libraryName,
                             String extractionRoot,
                             Class<T> cls)
        Creates a new library loader.

        Resources loaded on disk from extractionRoot, and from classpath from the passed in class. Library name is the passed in name.

    • Method Detail

      • getDefaultExtractionRoot

        public static String getDefaultExtractionRoot()
        Gets the default extration root location (~/.wpilib/nativecache).
      • loadLibraryHashed

        public void loadLibraryHashed()
                               throws IOException
        Load a native library by directly hashing the file.
        Throws:
        IOException