From 7e297659d791f20bada9bbf0639b4b054212d882 Mon Sep 17 00:00:00 2001 From: mkoch Date: Mon, 26 May 2003 12:58:02 +0000 Subject: 2003-05-26 Michael Koch * java/net/NetPermission.java, java/net/NetworkInterface.java, java/net/PasswordAuthentication.java, java/net/SocketPermission.java: New versions from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67174 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/net/NetworkInterface.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'libjava/java/net/NetworkInterface.java') diff --git a/libjava/java/net/NetworkInterface.java b/libjava/java/net/NetworkInterface.java index 4e8f4276c57..c3eb7108002 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 * @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 InetAddresses 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 Enumeration of all available network interfaces * * @exception SocketException If an error occurs */ -- cgit v1.2.1