KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > net > URI

java.net
Class URI

java.lang.Object
  extended by java.net.URI
All Implemented Interfaces:
Serializable, Comparable<URI>
See Also:
Top Examples, Source Code, URL, toASCIIString, toString, getSchemeSpecificPart, getAuthority, getFragment, getQuery, getPath, getUserInfo, getRawSchemeSpecificPart, getRawAuthority, getRawFragment, getRawQuery, getRawPath, getRawUserInfo, multi-argument constructors, single-argument constructor, Character.isSpaceChar, Character.isISOControl,
RFC 2373: IPv6 Addressing Architecture,
RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax,
RFC 2732: Format for Literal IPv6 Addresses in URLs,
URISyntaxException

public int compareTo(URI that)
See Also:
ClassCastException, Comparable, compareTo
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static URI create(String str)
See Also:
IllegalArgumentException, NullPointerException, URISyntaxException, URI(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean equals(Object ob)
See Also:
Hashtable, Object.hashCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getAuthority()
See Also:
getRawAuthority
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getFragment()
See Also:
getRawFragment
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getHost()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getPath()
See Also:
getRawPath
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getPort()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getQuery()
See Also:
getRawQuery
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRawAuthority()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRawFragment()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRawPath()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRawQuery()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRawSchemeSpecificPart()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRawUserInfo()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getScheme()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getSchemeSpecificPart()
See Also:
getRawSchemeSpecificPart
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getUserInfo()
See Also:
getRawUserInfo
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isAbsolute()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isOpaque()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI normalize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI parseServerAuthority()
                         throws URISyntaxException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI relativize(URI uri)
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI resolve(String str)
See Also:
IllegalArgumentException, NullPointerException, create, resolve
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI resolve(URI uri)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toASCIIString()
See Also:
toString
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URL toURL()
          throws MalformedURLException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI(String str)
    throws URISyntaxException
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI(String scheme,
           String ssp,
           String fragment)
    throws URISyntaxException
See Also:
URI(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI(String scheme,
           String userInfo,
           String host,
           int port,
           String path,
           String query,
           String fragment)
    throws URISyntaxException
See Also:
parseServerAuthority(), URI(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI(String scheme,
           String host,
           String path,
           String fragment)
    throws URISyntaxException
See Also:
URI
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public URI(String scheme,
           String authority,
           String path,
           String query,
           String fragment)
    throws URISyntaxException
See Also:
parseServerAuthority(), URI(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1753]What is the Difference between URI and URL?
By Anonymous on 2006/05/04 15:46:32  Rate
URI stands for Universal Resource Identifier and URL stands for Universal Resource Locator. Often times people use the terms interchangably, which is not entirely correct.  
  
  
 A URL is a subset of the URI popular protocols. These are protocols  ( http://, ftp://, mailto: ) . Therefore all URLs are URIs.  
  
  
 The term URL is deprecated and the more correct term URI is used in technical documentation. All URIs are means to access a resource on the Internet and are a technical short hand used to link to the resource. URIs always designate a method to access the resource and designate the specific resource to be accessed. 
   
 URLs always refer to network addresses  ( including a protocol specification, host name or address, and local path ) , a URI does not necessarily refer to a remote resource. For example, the URI file:///c:/ specifies a local directory. Because file does not refer to any specific network protocol,this URI is not also a URL.

Popular Tags