com.bea.document.internal
Class ClasspathEntityResolver

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.bea.document.internal.ClasspathEntityResolver
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ClasspathEntityResolver
extends DefaultHandler

EntityResolver that resolves system id first as specified, then on the classpath if not found.


Constructor Summary
ClasspathEntityResolver()
           
 
Method Summary
 void registerPublicIdAsResource(String publicId, String resourceName, ClassLoader classLoader)
           
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathEntityResolver

public ClasspathEntityResolver()
Method Detail

registerPublicIdAsResource

public void registerPublicIdAsResource(String publicId,
                                       String resourceName,
                                       ClassLoader classLoader)

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException
Throws:
SAXException