&t
Java 1.4 introduced a URI class:
An instance of this class represents a URI reference as defined by [RFC 2396 and RFC 2732]. This class provides constructors for creating URI instances from their components or by parsing their string forms, methods for accessing the various components of an instance, and methods for normalizing, resolving, and relativizing URI instances. Instances of this class are immutable.