be.cardon.utils
Class LibraryLoader

java.lang.Object
  extended by be.cardon.utils.LibraryLoader

public class LibraryLoader
extends java.lang.Object


Field Summary
static java.lang.String libPathPropertyName
           
static java.lang.String NOT_FOUND
           
static java.lang.String tempDirPropertyName
           
 
Constructor Summary
LibraryLoader()
          Creates a new instance of LibraryLoader
 
Method Summary
static void copy(java.io.File src, java.io.File dest, int bufferSize)
           
static void copy(java.io.InputStream src, java.io.File dest, int bufferSize)
           
static void loadLib(java.lang.ClassLoader classLoader, java.lang.String libName, java.lang.String extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tempDirPropertyName

public static java.lang.String tempDirPropertyName

libPathPropertyName

public static java.lang.String libPathPropertyName

NOT_FOUND

public static java.lang.String NOT_FOUND
Constructor Detail

LibraryLoader

public LibraryLoader()
Creates a new instance of LibraryLoader

Method Detail

loadLib

public static void loadLib(java.lang.ClassLoader classLoader,
                           java.lang.String libName,
                           java.lang.String extension)
                    throws java.io.IOException,
                           java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

copy

public static void copy(java.io.InputStream src,
                        java.io.File dest,
                        int bufferSize)
                 throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.File src,
                        java.io.File dest,
                        int bufferSize)
                 throws java.io.IOException
Throws:
java.io.IOException