public class MACAddress extends Object
A class for fetching the MAC address of one of the local host network interfaces.
Works on Linux, Solaris, Darwin, Windows.
| Constructor and Description |
|---|
MACAddress() |
| Modifier and Type | Method and Description |
|---|---|
long |
getMACAddress() |
protected static long |
getMacAddressFromNetworkInterfaceAPI() |
protected long |
getMacAddressFromSystemCommandCall() |
static void |
main(String[] arg)
Testing.
|
public long getMACAddress()
protected static long getMacAddressFromNetworkInterfaceAPI()
protected long getMacAddressFromSystemCommandCall()
public static void main(String[] arg)
Testing.
arg - ignored