org.safehaus.uuid
Class NativeInterfaces

java.lang.Object
  extended by org.safehaus.uuid.NativeInterfaces

public class NativeInterfaces
extends java.lang.Object

Proxy class that uses JNI-based functionality to obtain information about local interfaces.

Note that there are two different places where platform-dependant native code libraries can be located under:


Field Summary
protected static java.lang.String sDefaultLibSubdir
           
 
Constructor Summary
NativeInterfaces()
           
 
Method Summary
protected static void checkLoad()
           
static EthernetAddress[] getAllInterfaces()
           
static EthernetAddress getPrimaryInterface()
           
static void main(java.lang.String[] args)
          Test driver to test if native ethernet adapter/interface access works ok.
static void setLibDir(java.io.File f)
          Method that allows overriding of default library directory, to allow loading of native interface access code from specific application dependant location.
static void setUseStdLibDir(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sDefaultLibSubdir

protected static final java.lang.String sDefaultLibSubdir
See Also:
Constant Field Values
Constructor Detail

NativeInterfaces

public NativeInterfaces()
Method Detail

setLibDir

public static void setLibDir(java.io.File f)
Method that allows overriding of default library directory, to allow loading of native interface access code from specific application dependant location.


setUseStdLibDir

public static void setUseStdLibDir(boolean b)

checkLoad

protected static void checkLoad()

getPrimaryInterface

public static EthernetAddress getPrimaryInterface()

getAllInterfaces

public static EthernetAddress[] getAllInterfaces()

main

public static void main(java.lang.String[] args)
Test driver to test if native ethernet adapter/interface access works ok. Tries to get the primary interface and output it; prints out error message if access fails.