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: 2.3.0
Show newest version
package jp.gr.xml.relax.sax;

import java.io.StringReader;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;

public class DTDSkipper
    implements EntityResolver {

    public DTDSkipper() {
    }

    public InputSource resolveEntity(String s, String s1) {
        if(!s1.endsWith(".dtd")) {
            return null;
        } else {
            StringReader stringreader = new StringReader("");
            InputSource inputsource = new InputSource(stringreader);
            return inputsource;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy