diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-01 06:35:14 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-01 06:35:14 +0000 |
commit | 66ab2e1e8efd279d5cbb66299f9bb4ddb2803c59 (patch) | |
tree | 00c1b0bb5e071e381adfac0ddb73e98486330d14 /libjava/java/net/URL.java | |
parent | 679c5941f6ecb8686be342f2012fb0884c5b3555 (diff) | |
download | ppe42-gcc-66ab2e1e8efd279d5cbb66299f9bb4ddb2803c59.tar.gz ppe42-gcc-66ab2e1e8efd279d5cbb66299f9bb4ddb2803c59.zip |
2002-11-01 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
(isAnyLocalAddress): Implemented.
(isLoopbackAddress): Implemented, comment added.
(isLinkLocalAddress): Implemented, documentation added.
(isSiteLocalAddress): Implemented, documentation added.
(isMCGlobal): Implemented, documentation added.
(isMCNodeLocal): Implemented, documentation added.
(isMCLinkLocal): Implemented, documentation added.
(isMCSiteLocal): Implemented, documentation added.
(isMCOrgLocal): Implemented, documentation added.
(getHostName): Documentation added.
(getCanonicalHostName): Implemented, documentation added.
(getAddress): Documentation added.
(hashCode): Documentation added.
(equals): Documentation added.
(toString): Fixed implementation.
(getByAddress): Use Inet4Address and Inet6Address.
(lookup): New linewrap.
(getByName): SecurityManager check added, support Inet4Address and
Inet6address, comments added.
(getAllByName): SecurityManager check added, comments added.
* java/net/Inet6Address.java:
(Inet6Address): Initialize parent class with addr instead of null.
* java/net/URL.java
(equals): Documentation added.
(getFile): Documentation added.
(hashCode): Documentation added.
* java/net/natInetAddress.cc:
(aton): Fix IPv6 support.
* java/net/natPlainDatagramSocketImpl.cc:
(peek): Throw PortUnreachableException when suitable.
(peekData): Throw PortUnreachableException when suitable.
(send): Throw PortUnreachableException when suitable.
(receive): Throw PortUnreachableException when suitable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/URL.java')
-rw-r--r-- | libjava/java/net/URL.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index b485c51231d..00dad2c7871 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.java @@ -254,6 +254,9 @@ public final class URL implements Serializable hashCode = hashCode(); // Used for serialization. } + /** + * Checks if two URLs are equal + */ public boolean equals(Object obj) { if (obj == null || ! (obj instanceof URL)) @@ -287,6 +290,9 @@ public final class URL implements Serializable return getContent(); } + /** + * Returns the file of the URL + */ public String getFile() { return file; @@ -367,6 +373,9 @@ public final class URL implements Serializable return query; } + /** + * Returns a hashcode computed by the URLStreamHandler of this URL + */ public int hashCode() { // JCL book says this is computed using (only) the hashcodes of the |