public DatagramURL(String url) throws MalformedURLException {
		if (url == null) {
			throw new MalformedURLException("URL is null");
		}
		if (!url.startsWith("udp://")) {
			throw new MalformedURLException("URL is not using the udp protocol");
		}
		
		int portSep = url.indexOf(':', 6);
		
		if (portSep == -1) {
			throw new MalformedURLException("URL must specify the port");
		}
		
		this.host = url.substring(6, portSep);
		try {
	        this.port = Integer.parseInt(url.substring(portSep + 1));
		} catch (NumberFormatException nfe) {
	        throw new MalformedURLException("Invalid port number: " + url);
		}
		if (this.port < 1 || this.port > 65535) {
			throw new MalformedURLException("Invalid port number: " + url);
		}
	}