Uri, URL, and urn are the standard way to identify, locate, and name resources on the Internet. This article analyzes the URI and URL classes (and URL-related classes) of Uri, URL and urn and Java APIs, and demonstrates how to use these classes in
java.netClass URI
Rr.
Extends Object implements comparable
Represents a Uniform Resource identifier (URI) reference.
In addition to some of the nuances mentioned below, instances of this class represent a URI reference, which is defined in the
First, prefaceThe past has been confused about what is the URI what is the URL, it is time to make a good understanding of them! This article as a study note, in order to query later, if there are flaws please correct me!Second, from the URI.1.
URI provides a lot of methods to help you segment uri_string. you can easily get a certain segment of uri. For example: $ this-& amp; gt; uri-& amp; gt; segment (n) $ this-& amp; gt; uri-& amp; gt; rs
URI provides a lot of methods to help you
Java.net
Class URI
public final class URI
Extends object
Implements comparable
>, Serializable
Indicates a Uniform Resource Identifier (URI) reference.
Except for some minor differences mentioned below, such instances represent a URI
In computer terminology, a Uniform Resource identifier (Uniform Resource Identifier, or URI) is a string that identifies the name of an Internet resource. This type of identification allows users to interact with resources in the network (generally
For the URL, everyone is more familiar with, the other two words are more unfamiliar. URIs, URLs, and urns are standard ways to identify, locate, and name resources on the Internet. 1989 Tim Berners-lee invented the Internet (World Wide Web). WWW is
(original URL: http://zhidao.baidu.com/question/38764759.html) Each resource available on the Web-HTML documents, images, video clips, programs, and so on-is positioned by a generic resource identifier (Universal Resource Identifier, referred to as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.