List of usage examples for org.xml.sax EntityResolver interface-usage
From source file SimpleEntityResolver.java
public class SimpleEntityResolver implements EntityResolver { private static final String USAGE_TERMS_ID = "http://www.n.com/t.xml"; private static final String USAGE_TERMS_LOCAL_URI = "C:\\t.xml";
From source file SimpleEntityResolver.java
public class SimpleEntityResolver implements EntityResolver { private static final String USAGE_TERMS_ID = "http://www.n.com/t.xml"; private static final String USAGE_TERMS_LOCAL_URI = "C:\\t.xml";
From source file Main.java
class MyResolver implements EntityResolver { public InputSource resolveEntity(String publicId, String systemId) { try { URI uri = new URI(systemId); if ("file".equals(uri.getScheme())) { String filename = uri.getSchemeSpecificPart();
From source file de.nava.informa.utils.NoOpEntityResolver.java
/**
* An EntityResolver that resolves the DTD without actually reading
* the separate file.
*
* @author Niko Schmuck
*/
From source file org.talend.mdm.commmon.util.datamodel.management.SecurityEntityResolver.java
public class SecurityEntityResolver implements EntityResolver { public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId != null) { Pattern httpUrl = Pattern.compile("(http|https|ftp):(\\//|\\\\)(.*):(.*)"); //$NON-NLS-1$ Matcher match = httpUrl.matcher(systemId);
From source file org.apache.axis.utils.DefaultEntityResolver.java
public class DefaultEntityResolver implements org.xml.sax.EntityResolver { protected static Log log = LogFactory.getLog(XMLUtils.class.getName()); public DefaultEntityResolver() { }
From source file com.amalto.core.util.SecurityEntityResolver.java
public class SecurityEntityResolver implements EntityResolver { public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId != null) { Pattern httpUrl = Pattern.compile("(http|https|ftp):(\\//|\\\\)(.*):(.*)"); Matcher match = httpUrl.matcher(systemId);
From source file org.mule.config.MuleDtdResolver.java
/**
* <code>MuleDtdResolver</code> attempts to locate the mule-configuration.dtd on
* the classpath, regardless of the DOCTYPE declaration. If the DTD is not found, it
* defaults to trying to download it using the systemId. <p/> This resolver is
* responsible for associating an XSL document if any with the DTD. It also allows
* for a delegate Entity resolver and delegate XSL. This allows Configuration
From source file org.impalaframework.xml.schema.ClassPathSchemaResolver.java
/** * Implementation of {@link EntityResolver} used to resolve a schema location to a named resource on the classpath. * * @author Phil Zoio */ public class ClassPathSchemaResolver implements EntityResolver {
From source file be.fedict.eid.applet.service.signer.odf.ODFEntityResolver.java
/**
* ODF Entity Resolver for MathML DTD.
*
* @author Frank Cornelis
*
*/