From 7393decb70ea1bd5f69faab0648dd64ae94b2082 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Thu, 10 Oct 2002 05:19:22 +0000 Subject: 2002-10-08 Michael Koch * java/net/HttpURLConnection.java (getPermission): New method. (getErrorStream): New stub method. (getHeaderFieldDate): New stub method. * java/net/Inet4Address.java: (isLinkLocalAddress): Typo fixed. * java/net/InetAddress.java: (readResolve): New stubbed method (for serialization). (isAnyLocalAddress): New stubbed method. (isLoopbackAddress): New stubbed method. (isLinkLocalAddress): New stubbed method. (isSiteLocalAddress): New stubbed method. (isMCGlobal): New stubbed method. (isMCNodeGlobal): New stubbed method. (isMCLinkLocal): New stubbed method. (isMCSiteLocal): New stubbed method. (isMCOrgLocal): New stubbed method. (getCanonicalHostName): New stubbed method. (getByAddress): Create instances of Inet4Address/Inet6Address, instead of InetAddress, documentation added. * java/net/MulticastSocket.java (getInterface): Removed FIXME. (getNetworkInterface): New method. (setNetworkInterface): New method. * java/net/NetworkInterface.java: (toString): Use property "line.separator" instead of "\n". * java/net/URLConnection.java (getContent): New stubbed method. * java/net/URLStreamHandler.java: (equals): New stubbed method. (hostsEqual): New stubbed method. (hashCode): New stubbed method. * java/net/natNetworkInterface.cc: (getRealNetworkInterfaces): Create Inet4Address object instead of InetAddress. From-SVN: r58002 --- libjava/java/net/URLStreamHandler.java | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'libjava/java/net/URLStreamHandler.java') diff --git a/libjava/java/net/URLStreamHandler.java b/libjava/java/net/URLStreamHandler.java index 9c6ba258dc7..58add6f1883 100644 --- a/libjava/java/net/URLStreamHandler.java +++ b/libjava/java/net/URLStreamHandler.java @@ -223,6 +223,32 @@ public abstract class URLStreamHandler u.set(protocol, host, port, authority, userInfo, path, query, ref); } + /** + * Provides the default equals calculation. May be overidden by handlers for + * other protocols that have different requirements for equals(). This method + * requires that none of its arguments is null. This is guaranteed by the + * fact that it is only called by java.net.URL class. + * + * @param url1 An URL object + * @param url2 An URL object + */ + protected boolean equals (URL url1, URL url2) + { + // FIXME: implement this + return false; + } + + /** + * Compares the host components of two URLs. + * + * @exception UnknownHostException If an unknown host is found + */ + protected boolean hostsEqual (URL url1, URL url2) + { + // FIXME: implement this + return false; + } + /** * Get the IP address of our host. An empty host field or a DNS failure will * result in a null return. @@ -253,6 +279,16 @@ public abstract class URLStreamHandler return -1; } + /** + * Provides the default hash calculation. May be overidden by handlers for + * other protocols that have different requirements for hashCode calculation. + */ + protected int hashCode (URL url) + { + // FIXME: implement this + return 0; + } + /** * Converts an URL of a specific protocol to a string * -- cgit v1.2.3