textbender.g.xml.sax.ext
Class EntityResolverCP
java.lang.Object
  
org.xml.sax.helpers.DefaultHandler
      
org.xml.sax.ext.DefaultHandler2
          
EntityResolverCP
- All Implemented Interfaces: 
 - ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler
 
public final class EntityResolverCP
- extends DefaultHandler2
 
A resolver that searches the class path for entities.
 
 
| Methods inherited from class org.xml.sax.ext.DefaultHandler2 | 
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, startCDATA, startDTD, startEntity | 
 
| 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 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
EntityResolverCP
public EntityResolverCP(String[] directoryArray)
- Creates an EntityResolverCP.
- Parameters:
 directoryArray - For each directory d of this array,
         entities of basename b are sought on the classpath at d/b.
         Directories are specified without a trailing '/'.
 
resolveEntity
public InputSource resolveEntity(String name,
                                 String publicId,
                                 String baseURI,
                                 String systemId)
                          throws SAXException,
                                 IOException
- Specified by:
 resolveEntity in interface EntityResolver2- Overrides:
 resolveEntity in class DefaultHandler2
 
- Throws:
 SAXException
IOException