Java java.net NetworkInterface fields, constructors, methods, implement or subclass

Example usage for Java java.net NetworkInterface fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.net NetworkInterface.

The text is from its open source code.

Method

booleanequals(Object obj)
Compares this object against the specified object.
NetworkInterfacegetByIndex(int index)
Get a network interface given its index.
NetworkInterfacegetByInetAddress(InetAddress addr)
Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it.
NetworkInterfacegetByName(String name)
Searches for the network interface with the specified name.
ClassgetClass()
Returns the runtime class of this Object .
StringgetDisplayName()
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.
intgetIndex()
Returns the index of this network interface.
EnumerationgetInetAddresses()
Get an Enumeration with all or a subset of the InetAddresses bound to this network interface.
java.util.ListgetInterfaceAddresses()
Get a List of all or a subset of the InterfaceAddresses of this network interface.
intgetMTU()
Returns the Maximum Transmission Unit (MTU) of this interface.
StringgetName()
Get the name of this network interface.
EnumerationgetNetworkInterfaces()
Returns an Enumeration of all the interfaces on this machine.
NetworkInterfacegetParent()
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.
EnumerationgetSubInterfaces()
Get an Enumeration with all the subinterfaces (also known as virtual interfaces) attached to this network interface.
booleanisLoopback()
Returns whether a network interface is a loopback interface.
booleanisPointToPoint()
Returns whether a network interface is a point to point interface.
booleanisUp()
Returns whether a network interface is up and running.
booleanisVirtual()
Returns whether this interface is a virtual interface (also called subinterface).
booleansupportsMulticast()
Returns whether a network interface supports multicasting or not.
StringtoString()