home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.io.StringReader;
- import org.xml.sax.EntityResolver;
- import org.xml.sax.InputSource;
- import org.xml.sax.SAXException;
-
- class XMLUtils$Resolver implements EntityResolver {
- private XMLUtils$Resolver() {
- }
-
- public InputSource resolveEntity(String var1, String var2) throws SAXException {
- if (var2.equals("http://java.sun.com/dtd/properties.dtd")) {
- InputSource var3 = new InputSource(new StringReader("<?xml version=\"1.0\" encoding=\"UTF-8\"?><!-- DTD for properties --><!ELEMENT properties ( comment?, entry* ) ><!ATTLIST properties version CDATA #FIXED \"1.0\"><!ELEMENT comment (#PCDATA) ><!ELEMENT entry (#PCDATA) ><!ATTLIST entry key CDATA #REQUIRED>"));
- var3.setSystemId("http://java.sun.com/dtd/properties.dtd");
- return var3;
- } else {
- throw new SAXException("Invalid system identifier: " + var2);
- }
- }
-
- // $FF: synthetic method
- XMLUtils$Resolver(XMLUtils.1 var1) {
- this();
- }
- }
-