Class java.util.Linker
All Packages    This Package    Previous    Next

Class java.util.Linker

java.lang.Object
   |
   +----java.util.Linker

public final class Linker
extends Object
A class to encapsulates dynamic linking. This class allows the system to dynamically link in new libraries containing the implementation of native methods. Here is an example of what such a class may look like:
	class MPEGDecoder {
	    public native decode(InputStream s);
	    static {
		Linker.loadLibrary("mpeg");
	    }    
	}
The functionality in this class is very system dependent.
Version:
1.11, 22 Feb 1995
Author:
Arthur van Hoff

load(String)
loadLibrary(String)
Loads a dynamic library given a library name.

load
  public static synchronized void load(String filename)
loadLibrary
  public static synchronized void loadLibrary(String libname)
Loads a dynamic library given a library name. The call to LoadLibrary should be made in the static initializer of the first class that is loaded. Linking in the same library more than once is ignored.
Parameters:
libname - the name of the library
Throws: UnsatisfiedLinkException
Something went wrong


All Packages    This Package    Previous    Next