APIdia Launch Partner
Top Description Constructors Methods
sun.net.util

public Class URLUtil

extends Object
Class Inheritance
Imports
java.net.URL, java.util.Locale

URL Utility class.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
urlNoFragString(URL url)

Returns a string form of the url suitable for use as a key in HashMap/Sets.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

URLUtilback to summary
public URLUtil()

Method Detail

urlNoFragStringback to summary
public static String urlNoFragString(URL url)

Returns a string form of the url suitable for use as a key in HashMap/Sets. The string form should behave in the same manner as the URL when compared for equality in a HashMap/Set, except that no nameservice lookup is done on the hostname (only string comparison), and the fragment is not considered.

See Also
java.net.URL#sameFile(java.net.URL)