diff options
author | Michael Koch <konqueror@gmx.de> | 2003-05-26 12:58:02 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-05-26 12:58:02 +0000 |
commit | b91c701d199af4c4860919595ccf2cc755418cc1 (patch) | |
tree | 86efa3b8b35f1d1070f09616f4939e1a8d3346ee /libjava/java/net/NetworkInterface.java | |
parent | 8729d659a7e6d236c7012e5db5c865102fc3c916 (diff) | |
download | gcc-b91c701d199af4c4860919595ccf2cc755418cc1.zip gcc-b91c701d199af4c4860919595ccf2cc755418cc1.tar.gz gcc-b91c701d199af4c4860919595ccf2cc755418cc1.tar.bz2 |
NetPermission.java, [...]: New versions from classpath.
2003-05-26 Michael Koch <konqueror@gmx.de>
* java/net/NetPermission.java,
java/net/NetworkInterface.java,
java/net/PasswordAuthentication.java,
java/net/SocketPermission.java:
New versions from classpath.
From-SVN: r67174
Diffstat (limited to 'libjava/java/net/NetworkInterface.java')
-rw-r--r-- | libjava/java/net/NetworkInterface.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/libjava/java/net/NetworkInterface.java b/libjava/java/net/NetworkInterface.java index 4e8f427..c3eb710 100644 --- a/libjava/java/net/NetworkInterface.java +++ b/libjava/java/net/NetworkInterface.java @@ -41,6 +41,12 @@ import java.util.Enumeration; import java.util.Vector; /** + * This class models a network interface on the host computer. A network + * interface contains a name (typically associated with a specific + * hardware adapter) and a list of addresses that are bound to it. + * For example, an ethernet interface may be named "eth0" and have the + * address 192.168.1.101 assigned to it. + * * @author Michael Koch <konqueror@gmx.de> * @since 1.4 */ @@ -61,7 +67,9 @@ public final class NetworkInterface throws SocketException; /** - * Returns the name of the network interface + * Returns the name of the network interface + * + * @return The name of the interface. */ public String getName () { @@ -73,8 +81,8 @@ public final class NetworkInterface * * If a @see SecurityManager is available all addresses are checked * with @see SecurityManager::checkConnect() if they are available. - * Only InetAddresses are returned where the security manager doesn't - * thrown an exception. + * Only <code>InetAddresses</code> are returned where the security manager + * doesn't throw an exception. * * @return An enumeration of all addresses. */ @@ -106,6 +114,8 @@ public final class NetworkInterface /** * Returns the display name of the interface + * + * @return The display name of the interface */ public String getDisplayName () { @@ -168,7 +178,7 @@ public final class NetworkInterface } /** - * Return an Enumeration of all available network interfaces + * Return an <code>Enumeration</code> of all available network interfaces * * @exception SocketException If an error occurs */ |