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

jp.gr.xml.relax.sax.DTDSkipper Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
package jp.gr.xml.relax.sax;

import java.io.StringReader;

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

/**
 * DTDSkipper
 *
 * @since   May. 28, 2001
 * @version May. 28, 2001
 * @author  ASAMI, Tomoharu ([email protected])
 */
public class DTDSkipper implements EntityResolver {
    public InputSource resolveEntity(String publicId, String systemId) {
        if (!systemId.endsWith(".dtd")) {
            return (null);
        }
        StringReader reader = new StringReader("");
        InputSource is = new InputSource(reader);
        return (is);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy