public class MACAddress
extends java.lang.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(java.lang.String[] arg)
Testing.
|
public long getMACAddress()
protected static long getMacAddressFromNetworkInterfaceAPI()
protected long getMacAddressFromSystemCommandCall()
public static void main(java.lang.String[] arg)
Testing.
arg
- ignored