org.jouvieje.libloader
Class LibLoader

java.lang.Object
  extended byorg.jouvieje.libloader.LibLoader

public class LibLoader
extends java.lang.Object

Utility to load library


Field Summary
static boolean DEBUG
          Prints debug output in System.out.
static int PLATFORM_LINUX
          Linux platform
static int PLATFORM_MAC
          Mac platform
static int PLATFORM_SOLARIS
          SOLARIS platform
static int PLATFORM_WINDOWS
          Windows platform
 
Constructor Summary
LibLoader()
           
 
Method Summary
static int getPlatform()
           
static boolean isPlatform64Bits()
           
static boolean isWindowsCE()
           
static boolean loadLibrary(LibraryConfig libConfig, boolean libLoaderFirst)
           
static boolean loadLibrary(java.lang.String libraryName, boolean libLoaderFirst)
           
static boolean loadLibrary(java.lang.String libraryName, java.lang.String libraryFullName, boolean libLoaderFirst)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLATFORM_WINDOWS

public static final int PLATFORM_WINDOWS
Windows platform

See Also:
Constant Field Values

PLATFORM_LINUX

public static final int PLATFORM_LINUX
Linux platform

See Also:
Constant Field Values

PLATFORM_MAC

public static final int PLATFORM_MAC
Mac platform

See Also:
Constant Field Values

PLATFORM_SOLARIS

public static final int PLATFORM_SOLARIS
SOLARIS platform

See Also:
Constant Field Values

DEBUG

public static boolean DEBUG
Prints debug output in System.out.
Can be forced with JVM paramter -Dorg.jouvieje.libloader.debug=true

Constructor Detail

LibLoader

public LibLoader()
Method Detail

getPlatform

public static int getPlatform()
Returns:
the current platform type
See Also:
PLATFORM_WINDOWS, PLATFORM_LINUX, PLATFORM_MAC

isPlatform64Bits

public static boolean isPlatform64Bits()

isWindowsCE

public static boolean isWindowsCE()

loadLibrary

public static boolean loadLibrary(java.lang.String libraryName,
                                  boolean libLoaderFirst)
Returns:
true if the library has been loaded

loadLibrary

public static boolean loadLibrary(LibraryConfig libConfig,
                                  boolean libLoaderFirst)
Returns:
true if the library has been loaded

loadLibrary

public static boolean loadLibrary(java.lang.String libraryName,
                                  java.lang.String libraryFullName,
                                  boolean libLoaderFirst)
Returns:
true if the library has been loaded


NativeFmodEx Project - © Copyright 2005-2010 - Jérôme Jouvie (Jouvieje)
NativeFmodEx is an Open Source Project under GNU LGPL License
My sites : http://jerome.jouvie.free.fr/

(Documentation Copyright © Firelight Technologies - FMOD Ex - http://www.fmod.org)