|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfc.net.NIC
public class NIC
Network Interface Card related utility methods. Many of these methods are specific to ethernet type nic's.
| Nested Class Summary | |
|---|---|
static class |
NIC.NICInfo
Contains information about IP addresses and the associated interface names and MAC address. |
| Constructor Summary | |
|---|---|
NIC()
|
|
| Method Summary | |
|---|---|
static java.util.Map |
getMAC()
Returns a Map containing an IP address as the key and a NIC.NICInfo object as the value. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NIC()
| Method Detail |
|---|
public static java.util.Map getMAC()
NIC.NICInfo object as the value. Returns null if
the platform type is not supported.
Note 1: Requires a NT based system (NT, 2000, XP or later) if
running on windows. (this call will not work for lesser versions of
windows).
Note 2: An english locale is needed for this method to work
properly (because we parse for certain english words to extract the
results).
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||