All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.sylinx.hbatis.ext.xmapper.xml.IgnoreDTDEntityResolver Maven / Gradle / Ivy

The newest version!
package cn.sylinx.hbatis.ext.xmapper.xml;

import java.io.ByteArrayInputStream;
import java.io.IOException;

import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

public class IgnoreDTDEntityResolver implements EntityResolver {

	@Override
	public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
		return new InputSource(new ByteArrayInputStream("".getBytes()));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy