class DefaultXMLEntityResolver implements EntityResolver {

	@Override
	public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
		if (systemId != null && !"".equals(systemId)) { //$NON-NLS-1$
			InputSource is = search(systemId, null);
			if (is != null) {
				return is;
			}

			if (this.searchPath != null) {
				is = search(systemId, this.searchPath);
				if (is != null) {
					return is;
				}
			}
		}

		if (this.emptyExternalResource) {
			return new InputSource(new ByteArrayInputStream(new byte[0]));
		}

		return null;
	}

	public  DefaultXMLEntityResolver();
	public  DefaultXMLEntityResolver(File searchPath);
	public  DefaultXMLEntityResolver(URL searchPath);
	public  DefaultXMLEntityResolver(boolean assumeEmptyExternalResource);
	public  DefaultXMLEntityResolver(File searchPath, boolean assumeEmptyExternalResource);
	public  DefaultXMLEntityResolver(URL searchPath, boolean assumeEmptyExternalResource);

}