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

com.centit.support.xml.IgnoreDTDEntityResolver Maven / Gradle / Ivy

package com.centit.support.xml;

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

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

public class IgnoreDTDEntityResolver implements EntityResolver {

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy