- URI, which is the Uniform Resource identifier, a uniform resource identifier used to uniquely identify a resource
- The URL is the Uniform Resource Locator, a Uniform Resource locator, which is a specific URI that the URL can use to identify a resource and also how to locate the resource.
Urn,uniform resource Name, unified resource naming, identifies resources by name, such as mailto:[email protected].
URIs define a Uniform resource identity in an abstract, high-level concept, whereas URLs and urns are the exact way the resource is identified. URLs and urns are all a kind of URI.
PS : The Java.net.URL class does not provide escape from the special characters specified by the standard RFC2396, so the caller is required to encode the components of the URL themselves. The Java.net.URI provides escape functionality. So the recommended to manage the encoding and decoding of the URLs are to use Java.net.URI. You can use the Uri.tourl () and Url.touri () methods to convert two types of objects to one another. URL Encode/decode for HTML form can be done using Java.net.URLEncoder and java.net.URLDecoder, but not for URL objects
Reference: http://www.cnblogs.com/gaojing/archive/2012/02/04/2413626.html
Uri/url/urn