Class MACAddress

java.lang.Object
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 Details

    • MACAddress

      public MACAddress()
  • Method Details

    • getMACAddress

      public long getMACAddress()
    • getMacAddressFromNetworkInterfaceAPI

      protected static long getMacAddressFromNetworkInterfaceAPI()
    • getMacAddressFromSystemCommandCall

      protected long getMacAddressFromSystemCommandCall()
    • main

      public static void main(String[] arg)

      Testing.

      Parameters:
      arg - ignored