dip.world.variant.parser
Class FastEntityResolver

java.lang.Object
  extended bydip.world.variant.parser.FastEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

Resolves Entity definitions to an empty InputSource, unless validation is enabled, in which case we actually do resolve the entities.

Not looking for entity resolutions improves startup time.


Constructor Summary
FastEntityResolver(boolean isValidating)
          Construct a FastEntityResolver
 
Method Summary
static void attach(javax.xml.parsers.DocumentBuilder db)
          Attach a FastEntityResolver to a DocumentBuilder, setting validation as appropriate.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicID, java.lang.String systemID)
          Resolve the Entity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastEntityResolver

public FastEntityResolver(boolean isValidating)
Construct a FastEntityResolver

Method Detail

attach

public static void attach(javax.xml.parsers.DocumentBuilder db)
Attach a FastEntityResolver to a DocumentBuilder, setting validation as appropriate.


resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicID,
                                             java.lang.String systemID)
Resolve the Entity

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.