|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cinnabarsystems.clm.MacAddress
public class MacAddress
Provides basic utility functions for accessing information about the Ethernet adapters installed on a system, and their MAC addresses. This data is useful if you are using node-locked licenses.
| Method Summary | |
|---|---|
static MacAddress |
get(int index)
Returns a MacAddress instance for a single adapter. |
int[] |
getAddress()
Returns the raw MAC address of this adapter. |
static MacAddress[] |
getAll()
Returns information about all of the Ethernet adapters installed in this system. |
String |
getName()
Returns the human-readable name of this adapter. |
static int |
getNumAdapters()
Returns the number of Ethernet adapters installed on this sytem. |
static void |
main(String[] args)
|
String |
toString()
Returns a string representation of this adapter's MAC address, formatted as a simple string of hexadecimal digits. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int[] getAddress()
public String getName()
public String toString()
toString in class Objectpublic static int getNumAdapters()
public static MacAddress get(int index)
index - index of adapter to retrieve
public static MacAddress[] getAll()
public static void main(String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||