/** * Construct a new URI from another URI. All fields for this URI are * set equal to the fields of the URI passed in. * * @param p_other the URI to copy (cannot be null) */ public URI(URI p_other) { initialize(p_other); }
initialize(p_base); return;
initialize(p_base); return;
/** * Construct a new URI from a base URI and a URI specification string. * The URI specification string may be a relative URI. * * @param p_base the base URI (cannot be null if p_uriSpec is null or * empty) * @param p_uriSpec the URI specification string (cannot be null or * empty if p_base is null) * * @exception MalformedURIException if p_uriSpec violates any syntax * rules */ public URI(URI p_base, String p_uriSpec) throws MalformedURIException { initialize(p_base, p_uriSpec); }
/** * Construct a new URI from a base URI and a URI specification string. * The URI specification string may be a relative URI. * Construct a relative URI if boolean is assigned to "true" * and p_uriSpec is not valid absolute URI and p_base is null * instead of throwing an exception. * * @param p_base the base URI (cannot be null if p_uriSpec is null or * empty) * @param p_uriSpec the URI specification string (cannot be null or * empty if p_base is null) * @param allowNonAbsoluteURI true to permit non-absolute URIs, * false otherwise. * * @exception MalformedURIException if p_uriSpec violates any syntax * rules */ public URI(URI p_base, String p_uriSpec, boolean allowNonAbsoluteURI) throws MalformedURIException { initialize(p_base, p_uriSpec, allowNonAbsoluteURI); }