info.bliki.docbook
Class IgnoreDtdEntityResolver

java.lang.Object
  extended by info.bliki.docbook.IgnoreDtdEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class IgnoreDtdEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

An entity resolver that resolves all requests for DTD content, thus preventing network access when resolving DTDs. Initial source copied from the Textile-J project


Constructor Summary
IgnoreDtdEntityResolver()
           
 
Method Summary
static IgnoreDtdEntityResolver getInstance()
           
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnoreDtdEntityResolver

public IgnoreDtdEntityResolver()
Method Detail

getInstance

public static IgnoreDtdEntityResolver getInstance()

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Throws:
org.xml.sax.SAXException
java.io.IOException