toolbox.allegato
Class EmptyEntityResolver

Package class diagram package EmptyEntityResolver
java.lang.Object
  extended by toolbox.allegato.EmptyEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

EntityResolver implementation that will always resolve to an empty string. This is useful for ingoring the DTD declaration in XML instance documents.


Constructor Summary
EmptyEntityResolver()
          Default constructor.
 
Method Summary
static org.xml.sax.EntityResolver getEntityResolver()
          Return the default instance of the resolver.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Return an empty string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyEntityResolver

public EmptyEntityResolver()
Default constructor.

Method Detail

getEntityResolver

public static org.xml.sax.EntityResolver getEntityResolver()
Return the default instance of the resolver.

Returns:
EntityResolver instance.

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Return an empty string.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - The public id.
systemId - The system id.
Returns:
InputSource instance. An empty string in this instance.