Code example for URI

Methods: toASCIIString

0
         * crowdsourcer. 
	 */ 
	public static String turnCommandIntoURL(String command) {
		URI uri = null;
		try { 
			uri = new URI("http", "crowdsourcer.softwareprocess.es",
					"/F12/CMPUT301F12T08/", command, null);
		} catch (URISyntaxException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
 
	        System.out.println(uri.toASCIIString());
		return uri.toASCIIString();
	} 
 
	/** 
	 * This will return the string after a given tag. ie, if input = 
	 * "<task> This is my Task <date> November 29 <creator> Mike Dardis", and 
	 * tag = "<date>", this will return " November 29 ". 
	 *