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