FileDocCategorySizeDatePackage
MockResolver.javaAPI DocAndroid 1.5 API1549Wed May 06 22:41:06 BST 2009tests.api.org.xml.sax.support

MockResolver

public class MockResolver extends Object implements EntityResolver
A helper class for resolving entities.

Fields Summary
private Map
entities
Constructors Summary
Methods Summary
public voidaddEntity(java.lang.String publicId, java.lang.String systemId, org.xml.sax.InputSource source)

    
            
        entities.put("[" + publicId + ":" + systemId + "]", source);
    
public voidremoveEntity(java.lang.String publicId, java.lang.String systemId)

        entities.remove("[" + publicId + ":" + systemId + "]");
    
public org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)

        return entities.get("[" + publicId + ":" + systemId + "]");