info.bliki.wiki.addon.docbook
Class IgnoreDtdEntityResolver

java.lang.Object
  extended by info.bliki.wiki.addon.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


Field Summary
protected static IgnoreDtdEntityResolver instance
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static final IgnoreDtdEntityResolver instance
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


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.