API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. URI View Source
Author(s)
Mark Reinhold
Since
1.4
Version
1.48, 06/06/12
Serial
Hierarchy
 Object
      URI
Implements
 Comparable
 Serializable
Subclasses
Description
publicfinal class URI
  Represents a Uniform Resource Identifier (URI) reference.
Constructors
private URI ()
public URI (String str) throws URISyntaxException
  Constructs a URI by parsing the given string.
public URI (String scheme, String ssp, String fragment) throws URISyntaxException
  Constructs a URI from the given components.
public URI (String scheme, String userInfo, String host, int port, String path, String query, String fragment) throws URISyntaxException
  Constructs a hierarchical URI from the given components.
public URI (String scheme, String host, String path, String fragment) throws URISyntaxException
  Constructs a hierarchical URI from the given components.
public URI (String scheme, String authority, String path, String query, String fragment) throws URISyntaxException
  Constructs a hierarchical URI from the given components.
Methods
Hide/Show inherited methods
public int compareTo (URI that)
  Compares this URI to another object, which must be a URI.
publicstatic URI create (String str)
  Creates a URI by parsing the given string.
public boolean equals (Object ob)
  Tests this URI for equality with another object.
public String getAuthority ()
  Returns the decoded authority component of this URI.
public String getFragment ()
  Returns the decoded fragment component of this URI.
public String getHost ()
  Returns the host component of this URI.
public String getPath ()
  Returns the decoded path component of this URI.
public int getPort ()
  Returns the port number of this URI.
public String getQuery ()
  Returns the decoded query component of this URI.
public String getRawAuthority ()
  Returns the raw authority component of this URI.
public String getRawFragment ()
  Returns the raw fragment component of this URI.
public String getRawPath ()
  Returns the raw path component of this URI.
public String getRawQuery ()
  Returns the raw query component of this URI.
public String getRawSchemeSpecificPart ()
  Returns the raw scheme-specific part of this URI.
public String getRawUserInfo ()
  Returns the raw user-information component of this URI.
public String getScheme ()
  Returns the scheme component of this URI.
public String getSchemeSpecificPart ()
  Returns the decoded scheme-specific part of this URI.
public String getUserInfo ()
  Returns the decoded user-information component of this URI.
public int hashCode ()
  Returns a hash-code value for this URI.
public boolean isAbsolute ()
  Tells whether or not this URI is absolute.
public boolean isOpaque ()
  Tells whether or not this URI is opaque.
public URI normalize ()
  Normalizes this URI's path.
public URI parseServerAuthority () throws URISyntaxException
  Attempts to parse this URI's authority component, if defined, into user-information, host, and port components.
public URI relativize (URI uri)
  Relativizes the given URI against this URI.
public URI resolve (String str)
  Constructs a new URI by parsing the given string and then resolving it against this URI.
public URI resolve (URI uri)
  Resolves the given URI against this URI.
public String toASCIIString ()
  Returns the content of this URI as a US-ASCII string.
public String toString ()
  Returns the content of this URI as a string.
public URL toURL () throws MalformedURLException
  Constructs a URL from this URI.
Fields
Hide/Show inherited fields
pack-privatefinalstatic long serialVersionUID = "-6052424284110960213"
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar