FileDocCategorySizeDatePackage
URIDemo.javaAPI DocExample677Sun Jun 20 21:03:46 BST 2004None

URIDemo

public class URIDemo extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


		URI u = new URI("http://www.darwinsys.com/java/../openbsd/../index.jsp");
		System.out.println("Raw: " + u);
		URI normalized = u.normalize();
		System.out.println("Normalized: " + normalized);
		final URI BASE = new URI("http://www.darwinsys.com");
		System.out.println("Relativized to " + BASE + ": " + BASE.relativize(u));

		// A URL is a type of URI
		URL url = new URL(normalized.toString());
		System.out.println("URL: " + url);