001    package railo.runtime.converter;
002    
003    import org.xml.sax.EntityResolver;
004    import org.xml.sax.InputSource;
005    
006    public final class WDDXEntityResolver implements EntityResolver {
007            /**
008             * constant for the DTD File for WDDX
009             */
010            public final static String WDDX=        "/railo/runtime/converter/wddx.dtd";
011                    
012            @Override
013            public InputSource resolveEntity(String publicId, String systemId) {
014                    return new InputSource( getClass().getResourceAsStream(WDDX) );
015            }
016    
017     }