org.apache.xml.resolver.readers

Class XCatalogReader

public class XCatalogReader extends SAXCatalogReader implements SAXCatalogParser

Parse "xcatalog" XML Catalog files, this is the XML Catalog format developed by John Cowan and supported by Apache.

Version: 1.0

Author: Norman Walsh Norman.Walsh@Sun.COM

See Also:

Field Summary
protected Catalogcatalog
The catalog object needs to be stored by the object so that SAX callbacks can use it.
Constructor Summary
XCatalogReader(SAXParserFactory parserFactory)
The constructor
Method Summary
voidcharacters(char[] ch, int start, int length)

The SAX characters method does nothing.

voidendDocument()

The SAX endDocument method does nothing.

voidendElement(String namespaceURI, String localName, String qName)

The SAX endElement method does nothing.

CataloggetCatalog()
Get the current catalog.
voidignorableWhitespace(char[] ch, int start, int length)

The SAX ignorableWhitespace method does nothing.

voidprocessingInstruction(String target, String data)

The SAX processingInstruction method does nothing.

voidsetCatalog(Catalog catalog)
Set the current catalog.
voidsetDocumentLocator(Locator locator)

The SAX setDocumentLocator method does nothing.

voidstartDocument()

The SAX startDocument method does nothing.

voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)

The SAX startElement method recognizes elements from the plain catalog format and instantiates CatalogEntry objects for them.

Field Detail

catalog

protected Catalog catalog
The catalog object needs to be stored by the object so that SAX callbacks can use it.

Constructor Detail

XCatalogReader

public XCatalogReader(SAXParserFactory parserFactory)
The constructor

Method Detail

characters

public void characters(char[] ch, int start, int length)

The SAX characters method does nothing.

endDocument

public void endDocument()

The SAX endDocument method does nothing.

endElement

public void endElement(String namespaceURI, String localName, String qName)

The SAX endElement method does nothing.

getCatalog

public Catalog getCatalog()
Get the current catalog.

ignorableWhitespace

public void ignorableWhitespace(char[] ch, int start, int length)

The SAX ignorableWhitespace method does nothing.

processingInstruction

public void processingInstruction(String target, String data)

The SAX processingInstruction method does nothing.

setCatalog

public void setCatalog(Catalog catalog)
Set the current catalog.

setDocumentLocator

public void setDocumentLocator(Locator locator)

The SAX setDocumentLocator method does nothing.

startDocument

public void startDocument()

The SAX startDocument method does nothing.

startElement

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)

The SAX startElement method recognizes elements from the plain catalog format and instantiates CatalogEntry objects for them.

Parameters: namespaceURI The namespace name of the element. localName The local name of the element. qName The QName of the element. atts The list of attributes on the element.

See Also: CatalogEntry

Copyright B) 2001 Apache. All Rights Reserved.