Class SAXCatalogReader

java.lang.Object
org.apache.xml.resolver.readers.SAXCatalogReader
All Implemented Interfaces:
CatalogReader, ContentHandler, DocumentHandler
Direct Known Subclasses:
OASISXMLCatalogReader, XCatalogReader

public class SAXCatalogReader extends Object implements CatalogReader, ContentHandler, DocumentHandler
A SAX-based CatalogReader.

This class is used to read XML Catalogs using the SAX. This reader has an advantage over the DOM-based reader in that it functions on the stream of SAX events. It has the disadvantage that it cannot look around in the tree.

Since the choice of CatalogReaders (in the InputStream case) can only be made on the basis of MIME type, the following problem occurs: only one CatalogReader can exist for all XML mime types. In order to get around this problem, the SAXCatalogReader relies on a set of external CatalogParsers to actually build the catalog.

The selection of CatalogParsers is made on the basis of the QName of the root element of the document.

Version:
1.0
Author:
Norman Walsh Norman.Walsh@Sun.COM
See Also: