public class NetworkInterface extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MOCA
Network interface type for hard-wired and MoCA based.
|
static int |
UNKNOWN
Unknown network type.
|
static int |
WIRED_ETHERNET
Network interface type for hard-wired and ethernet based.
|
static int |
WIRELESS_ETHERNET
Network interface type for wireless and ethernet based.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NetworkInterface()
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName()
Gets a humanly readable name for this interface, e.g.
|
InetAddress |
getInetAddress()
Gets the
InetAddress of this interface. |
String |
getMacAddress()
Gets the MAC address of this interface.
|
static NetworkInterface[] |
getNetworkInterfaces()
Gets an array of
NetworkInterface instances that represent
all of the network interfaces supported by the device. |
int |
getType()
Gets the type of this network interface.
|
public static final int UNKNOWN
public static final int MOCA
public static final int WIRED_ETHERNET
public static final int WIRELESS_ETHERNET
public static NetworkInterface[] getNetworkInterfaces()
NetworkInterface instances that represent
all of the network interfaces supported by the device.public int getType()
public String getDisplayName()
public InetAddress getInetAddress()
InetAddress of this interface.InetAddress of this interface.public String getMacAddress()
Copyright © 2013 CableLabs. All Rights Reserved.