Code example for EntityResolver

Methods: resolveEntity

0
		 *  
		 * @see org.xml.sax.helpers.DefaultHandler#resolveEntity(java.lang.String, java.lang.String) 
		 */ 
		public InputSource resolveEntity(String publicId, String systemId) throws SAXException {
			try { 
				return entityResolver.resolveEntity(publicId, systemId);
			} catch (IOException e) {
				return new InputSource(new StringReader("")); //$NON-NLS-1$
			} 
		} 
 
		public String toString() {
			return buf.toString();
		} 
	} 
}