public class ResourceLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOTNETNATIVE_TEMP_DIR |
static java.lang.String |
LIB_NAME |
Constructor and Description |
---|
ResourceLoader() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
copyFromWarToFolder(org.jboss.vfs.VirtualFile virtualFileOrFolder,
java.io.File targetFolder)
Copies resources from WAR to target folder.
|
(package private) static void |
copyJarResourceToPath(java.net.JarURLConnection jarConnection,
java.io.File destPath)
Copies resources from the jar file of the current thread and extract it
to the destination path.
|
(package private) static void |
copyResources(java.net.URL resourceUrl,
java.io.File targetPath)
Copies resources to target folder.
|
static java.io.File |
extractDotNetNativeResources(java.lang.String resourceName)
Extracts .net native library resources to temp folder.
|
static DotNetNativeInterface |
getDotNetNativeAPIInstance()
Loads .Net Native library via JNA.
|
static java.lang.String |
getDotNetNativeLibName()
Gets native library name.
|
(package private) static java.lang.String |
getProductKey() |
public static final java.lang.String DOTNETNATIVE_TEMP_DIR
public static final java.lang.String LIB_NAME
public static DotNetNativeInterface getDotNetNativeAPIInstance()
Native.load()
.public static java.lang.String getDotNetNativeLibName()
Native.register()
.public static java.io.File extractDotNetNativeResources(java.lang.String resourceName)
resourceName
- name of file or directorystatic void copyResources(java.net.URL resourceUrl, java.io.File targetPath) throws java.io.IOException, java.net.URISyntaxException
resourceUrl
- targetPath
- java.io.IOException
java.net.URISyntaxException
static void copyJarResourceToPath(java.net.JarURLConnection jarConnection, java.io.File destPath)
jarConnection
- destPath
- destination file or directorystatic void copyFromWarToFolder(org.jboss.vfs.VirtualFile virtualFileOrFolder, java.io.File targetFolder) throws java.io.IOException
virtualFileOrFolder
- targetFolder
- java.io.IOException
static java.lang.String getProductKey()