org.directwebremoting.util
Class EmptyEntityResolver

java.lang.Object
  extended by org.directwebremoting.util.EmptyEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

An EntityResolver for use when you don't want to do any entity resolving.

I think this is technically a violation of all sorts of things because the DTD affects how a document is parsed, and this just dumps all DTDs. However when you are not interested in validity, you just want to get information when you know that the DTD won't affect the document, this could be useful.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
EmptyEntityResolver()
           
 
Method Summary
 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

EmptyEntityResolver

public EmptyEntityResolver()
Method Detail

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 2008