diff options
author | Michael Koch <konqueror@gmx.de> | 2003-05-02 09:27:59 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-05-02 09:27:59 +0000 |
commit | 143f596a09eb477adb10f7e710df0b4b97fa4115 (patch) | |
tree | d395dadb3026a885728844a608ac376f88c1f984 /libjava/java/net/InetAddress.java | |
parent | 9ab94a932c3cd105735460d62dc980e41d1a2e27 (diff) | |
download | gcc-143f596a09eb477adb10f7e710df0b4b97fa4115.zip gcc-143f596a09eb477adb10f7e710df0b4b97fa4115.tar.gz gcc-143f596a09eb477adb10f7e710df0b4b97fa4115.tar.bz2 |
InetAddress.java: Merged class documentation with classpath.
2003-05-02 Michael Koch <konqueror@gmx.de>
* 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
Diffstat (limited to 'libjava/java/net/InetAddress.java')
-rw-r--r-- | libjava/java/net/InetAddress.java | 20 |
1 files changed, 14 insertions, 6 deletions
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(). + * <p> + * 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 <arenn@urbanophile.com> + * @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. |