com.calitha.xml
Class DoNothingEntityResolver

java.lang.Object
  extended by com.calitha.xml.DoNothingEntityResolver
All Implemented Interfaces:
EntityResolver

public class DoNothingEntityResolver
extends Object
implements EntityResolver

The DoNothingEntityResolver class represents a resolver that does absolutely nothing.

Assigning this resolver to a parser prevents it from loading new entities.

Author:
Robert van Loenhout

Constructor Summary
DoNothingEntityResolver()
           
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoNothingEntityResolver

public DoNothingEntityResolver()
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException