public class NativeInterfaces
extends java.lang.Object
Note that there are two different places where platform-dependant native code libraries can be located under:
setUseStdLibDir(boolean)
before accessing any access method in
this class.
sDefaultLibSubdir
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
sDefaultLibSubdir |
Constructor and Description |
---|
NativeInterfaces() |
Modifier and Type | Method and Description |
---|---|
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) |
protected static final java.lang.String sDefaultLibSubdir
public static void setLibDir(java.io.File f)
public static void setUseStdLibDir(boolean b)
protected static void checkLoad()
public static EthernetAddress getPrimaryInterface()
public static EthernetAddress[] getAllInterfaces()
public static void main(java.lang.String[] args)