package com.mindprod.example;
import java.io.IOException;
import java.net.URL;
import static java.lang.System.*;
/**
* Test behaviour of URL constructor.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0 2012-10-31 original version
* @since 2012-10-31
*/
public final class TestURL
{
/**
* Examines Java's various UTF implementations for conformance with Unicode Standards.
*
* @param args not used
*
* @throws java.io.IOException on I/O failure
*/
public static void main( String[] args ) throws IOException
{
URL baseURL = new URL( "http://www.truesoft.org/x/submit.php" );
out.println( baseURL );
out.println( new URL( baseURL, "/submit/check-pad.php" ) );
out.println( new URL( baseURL, "submit/check-pad.php" ) );
out.println( new URL( baseURL, "./submit/check-pad.php" ) );
out.println( new URL( baseURL, "../submit/check-pad.php" ) );
baseURL = new URL( "http://www.truesoft.org/submit.php" );
out.println( baseURL );
out.println( new URL( baseURL, "/submit/check-pad.php" ) );
out.println( new URL( baseURL, "submit/check-pad.php" ) );
out.println( new URL( baseURL, "./submit/check-pad.php" ) );
out.println( new URL( baseURL, "../submit/check-pad.php" ) );
}
}