Example usage for Java java.net NetworkInterface fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | equals(Object obj) Compares this object against the specified object. |
NetworkInterface | getByIndex(int index) Get a network interface given its index. |
NetworkInterface | getByInetAddress(InetAddress addr) Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it. |
NetworkInterface | getByName(String name) Searches for the network interface with the specified name. |
Class> | getClass() Returns the runtime class of this Object . |
String | getDisplayName() Get the display name of this network interface. |
byte[] | getHardwareAddress() Returns the hardware address (usually MAC) of the interface if it has one and if it can be accessed given the current privileges. |
int | getIndex() Returns the index of this network interface. |
Enumeration | getInetAddresses() Get an Enumeration with all or a subset of the InetAddresses bound to this network interface. |
java.util.List | getInterfaceAddresses() Get a List of all or a subset of the InterfaceAddresses of this network interface. |
int | getMTU() Returns the Maximum Transmission Unit (MTU) of this interface. |
String | getName() Get the name of this network interface. |
Enumeration | getNetworkInterfaces() Returns an Enumeration of all the interfaces on this machine. |
NetworkInterface | getParent() Returns the parent NetworkInterface of this interface if this is a subinterface, or null if it is a physical (non virtual) interface or has no parent. |
Enumeration | getSubInterfaces() Get an Enumeration with all the subinterfaces (also known as virtual interfaces) attached to this network interface. |
boolean | isLoopback() Returns whether a network interface is a loopback interface. |
boolean | isPointToPoint() Returns whether a network interface is a point to point interface. |
boolean | isUp() Returns whether a network interface is up and running. |
boolean | isVirtual() Returns whether this interface is a virtual interface (also called subinterface). |
boolean | supportsMulticast() Returns whether a network interface supports multicasting or not. |
String | toString() |