Code example for URL

Methods: toExternalForm

0
	 * Build an iDOM tree from a URL. 
	 */ 
	public final Document build(URL url)
	throws SAXException, IOException { 
		SAXHandler handler = newHandler();
		_parser.parse(url.toExternalForm(), handler);
		return handler.getDocument();
	} 
	/** 
	 * Build an iDOM tree from a Reader. 
	 */ 
	public final Document build(Reader src)
	throws SAXException, IOException { 
		SAXHandler handler = newHandler();
		_parser.parse(new InputSource(src), handler);
		return handler.getDocument();
	} 
	/** 
	 * Creates a SAX Handler. 
	 * Deriving class might override to provide a subclass of SAXHandler. 
	 */