From 143f596a09eb477adb10f7e710df0b4b97fa4115 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Fri, 2 May 2003 09:27:59 +0000 Subject: InetAddress.java: Merged class documentation with classpath. 2003-05-02 Michael Koch * java/net/InetAddress.java: Merged class documentation with classpath. * java/net/JarURLConnection.java: Explicitely import all used classes. * java/net/URL.java: Reformatting. * java/net/ServerSocket.java, java/net/Socket.java: New versions from classpath. From-SVN: r66376 --- libjava/java/net/InetAddress.java | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'libjava/java/net/InetAddress.java') diff --git a/libjava/java/net/InetAddress.java b/libjava/java/net/InetAddress.java index 4cbcb1a..34d4ad1 100644 --- a/libjava/java/net/InetAddress.java +++ b/libjava/java/net/InetAddress.java @@ -44,20 +44,28 @@ import java.io.IOException; import java.io.Serializable; import java.io.ObjectStreamException; -/** - * @author Per Bothner - * @date January 6, 1999. - */ - /* * Written using on-line Java Platform 1.2 API Specification, as well * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). * (The latter turns out to have some errors ...) * Status: Believed complete and correct. + */ + +/** + * This class models an Internet address. It does not have a public + * constructor. Instead, new instances of this objects are created + * using the static methods getLocalHost(), getByName(), and + * getAllByName(). + *

+ * This class fulfills the function of the C style functions gethostname(), + * gethostbyname(), and gethostbyaddr(). It resolves Internet DNS names + * into their corresponding numeric addresses and vice versa. + * + * @author Aaron M. Renn + * @author Per Bothner * * @specnote This class is not final since JK 1.4 */ - public class InetAddress implements Serializable { // The Serialized Form specifies that an int 'address' is saved/restored. -- cgit v1.1