public class LibraryInstaller
extends java.lang.Object
Constructor and Description |
---|
LibraryInstaller() |
Modifier and Type | Method and Description |
---|---|
void |
addLibrary(java.lang.String libName) |
void |
clearJars() |
void |
clearNativeLibs() |
boolean |
fileContentsEqual(java.io.File file0,
java.io.File file1)
Checks to see if two files are identical.
|
java.io.File |
getLibDir() |
java.lang.String |
getRemoteSource() |
boolean |
isConnectionException(java.lang.Exception e) |
static void |
main(java.lang.String[] args) |
int |
moveUnusedJars() |
void |
readLibs(java.io.File file) |
void |
setLibDir(java.lang.String dirPath) |
void |
setRemoteSource(java.lang.String source) |
int |
verifyJars(boolean updateLibs)
Verify that all jar files are present and, if requested, updated.
|
int |
verifyNativeLibs(boolean updateLibs)
Verify that all native libraries are present and, if requested, updated.
|
public java.lang.String getRemoteSource()
public void setRemoteSource(java.lang.String source)
public void addLibrary(java.lang.String libName)
public void clearJars()
public void clearNativeLibs()
public void setLibDir(java.lang.String dirPath)
public java.io.File getLibDir()
public static void main(java.lang.String[] args)
public int verifyNativeLibs(boolean updateLibs) throws java.lang.Exception
updateLibs
- if true
, verifies that each library
is the most recent, and downloads it if it isn't.java.lang.Exception
public boolean isConnectionException(java.lang.Exception e)
public int verifyJars(boolean updateLibs) throws java.lang.Exception
updateLibs
- if true
, verifies that each jar file
is the most recent, and downloads it if it isn't.java.lang.Exception
public int moveUnusedJars()
public void readLibs(java.io.File file) throws java.io.IOException
java.io.IOException
public boolean fileContentsEqual(java.io.File file0, java.io.File file1)