com.pixelmed.utils
Class MACAddress

java.lang.Object
  extended by com.pixelmed.utils.MACAddress

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 Summary
MACAddress()
           
 
Method Summary
 long getMACAddress()
           
protected static long getMacAddressFromNetworkInterfaceAPI()
           
protected  long getMacAddressFromSystemCommandCall()
           
static void main(String[] arg)
          Testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MACAddress

public MACAddress()
Method Detail

getMACAddress

public long getMACAddress()

getMacAddressFromNetworkInterfaceAPI

protected static long getMacAddressFromNetworkInterfaceAPI()

getMacAddressFromSystemCommandCall

protected long getMacAddressFromSystemCommandCall()

main

public static void main(String[] arg)

Testing.

Parameters:
arg - ignored