Package com.pixelmed.utils
Class MACAddress
- java.lang.Object
-
- com.pixelmed.utils.MACAddress
-
public class MACAddress extends java.lang.ObjectA class for fetching the MAC address of one of the local host network interfaces.
Works on Linux, Solaris, Darwin, Windows.
-
-
Constructor Summary
Constructors Constructor Description MACAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMACAddress()protected static longgetMacAddressFromNetworkInterfaceAPI()protected longgetMacAddressFromSystemCommandCall()static voidmain(java.lang.String[] arg)Testing.
-
-
-
Method Detail
-
getMACAddress
public long getMACAddress()
-
getMacAddressFromNetworkInterfaceAPI
protected static long getMacAddressFromNetworkInterfaceAPI()
-
getMacAddressFromSystemCommandCall
protected long getMacAddressFromSystemCommandCall()
-
main
public static void main(java.lang.String[] arg)
Testing.
- Parameters:
arg- ignored
-
-