public class NativeLibraryResourceLoader extends AbstractResourceLoader
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NativeLibraryResourceLoader.Identification
Separate class for native platform ID which is only loaded when native libs are loaded.
|
Modifier and Type | Field and Description |
---|---|
private java.io.File |
root
The filesystem root of the resource loader.
|
Constructor and Description |
---|
NativeLibraryResourceLoader(java.io.File root)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getArchName()
Get the detected architecture name for this platform.
|
java.lang.String |
getLibrary(java.lang.String name)
Get the absolute physical filesystem path for a library with the given name.
|
java.net.URI |
getLocation()
Get the base location of the resources in this loader (if any).
|
java.io.File |
getRoot()
Get the filesystem root of the resource loader.
|
getClassSpec, getPackageSpec, getPackageSpec, getPaths, getResource, getRootName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public NativeLibraryResourceLoader(java.io.File root)
root
- the filesystem root of the resource loaderpublic java.lang.String getLibrary(java.lang.String name)
/
" characters.getLibrary
in interface ResourceLoader
getLibrary
in class AbstractResourceLoader
name
- the namenull
if the library is not presentpublic java.net.URI getLocation()
ResourceLoader
null
is returned.null
if not availablepublic java.io.File getRoot()
public static java.lang.String getArchName()