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

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

There is a newer version: 5.3.2302
Show newest version
package com.centit.support.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 {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy