src/org/kocakosm/pitaya/net/URLs.java
public static String relativize(URL base, URL full)
	{
		try {
			return base.toURI().relativize(full.toURI())
				.normalize().toString();
		} catch (URISyntaxException ex) {
			throw new IllegalArgumentException(ex);
		}
	}
public static String relativize(URL base, URL full)
	{
		try {
			return base.toURI().relativize(full.toURI())
				.normalize().toString();
		} catch (URISyntaxException ex) {
			throw new IllegalArgumentException(ex);
		}
	}
public static String relativize ( URL base , URL full ) { try { return base . toURI ( ) . relativize ( full . toURI ( ) ) . normalize ( ) . toString ( ) ; } catch ( URISyntaxException ex ) { throw new IllegalArgumentException ( ex ) ; } }
Relativizes the specified full {@code URL} against the given base.
Behaves as {@link java.net.URI#relativize(java.net.URI)}.

@param base the base {@code URL}.
@param full the full {@code URL}.

@return the relativized path.

@throws NullPointerException if one of the arguments is {@code null}.
@throws IllegalArgumentException if the relativization fails.
Relativizes the specified full { @code URL } against the given base . Behaves as { @link java . net . URI#relativize ( java . net . URI ) } .