com.ibm.xml.framework
Interface Catalog
- public abstract interface Catalog
- extends EntityResolver
Interface for implementing basic catalog support in the parser.
To implement and use a Catalog, implement this interface and
install your catalog instance as the EntityResolver in the
parser's entity handler. For example:
XMLParser parser = new AnyParser();
parser.getEntityHandler().setEntityResolver(new MyCatalog());
- Version:
- Revision: 65 1.2 src/com/ibm/xml/framework/Catalog.java, parser, xml4j2, xml4j2_0_0
- See Also:
EntityResolver
,
XMLEntityHandler.setEntityResolver(org.xml.sax.EntityResolver)
Method Summary |
void |
loadCatalog(InputSource source)
Loads the catalog stream specified by the given input source and
appends the contents to the catalog. |
loadCatalog
public void loadCatalog(InputSource source)
throws java.lang.Exception
- Loads the catalog stream specified by the given input source and
appends the contents to the catalog.
- Parameters:
source
- The catalog source.- Throws:
- java.lang.Exception - Throws an exception if an error
occurs while loading the catalog source.