| java.lang.Object | |
| ↳ | java.net.NetworkInterface |
This class provides an methods that are used to get information about the network interfaces supported by the system
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares the specified object to this NetworkInterface and answer if they
are equal.
| |||||||||||
Returns the network interface which has the specified internet address
bound to it, if one exists.
| |||||||||||
Returns the network interface with the specified name, if one exists
| |||||||||||
Returns the user readable name associated with the network interface
| |||||||||||
Returns the list of internet addresses bound to the interface
| |||||||||||
Returns the name associated with the network interface
| |||||||||||
Returns the list of network interfaces supported by the system or null if
no interfaces are supported by the system
| |||||||||||
Returns a hash code for this NetworkInterface object.
| |||||||||||
Returns a string containing a concise, human-readable description of the
network interface
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
Compares the specified object to this NetworkInterface and answer if they are equal. The object must be an instance of NetworkInterface with the same name, displayName and list of network interfaces to be the same
| obj | the object to compare |
|---|
Returns the network interface which has the specified internet address bound to it, if one exists.
| address | address of interest |
|---|
| SocketException | if an error occurs when getting network interface information |
|---|---|
| NullPointerException | if the address passed in is null |
Returns the network interface with the specified name, if one exists
| SocketException | if an error occurs when getting network interface information |
|---|---|
| NullPointerException | if the interface name passed in is null |
Returns the user readable name associated with the network interface
Returns the list of internet addresses bound to the interface
Returns the name associated with the network interface
Returns the list of network interfaces supported by the system or null if no interfaces are supported by the system
| SocketException | if an error occurs when getting network interface information |
|---|
Returns a hash code for this NetworkInterface object. Since the name should be unique for each network interface the hash code is generated using this name
Returns a string containing a concise, human-readable description of the network interface