org.apache.xml.resolver.readers
Class XCatalogReader
- ContentHandler, DocumentHandler, CatalogReader, SAXCatalogParser
public class XCatalogReader
Parse "xcatalog" XML Catalog files, this is the XML Catalog format
developed by John Cowan and supported by Apache.
protected Catalog | catalog - The catalog object needs to be stored by the object so that
SAX callbacks can use it.
|
void | characters(ch[] , int start, int length) - The SAX
characters method does nothing.
|
void | endDocument() - The SAX
endDocument method does nothing.
|
void | endElement(String namespaceURI, String localName, String qName) - The SAX
endElement method does nothing.
|
Catalog | getCatalog() - Get the current catalog.
|
void | ignorableWhitespace(ch[] , int start, int length) - The SAX
ignorableWhitespace method does nothing.
|
void | processingInstruction(String target, String data) - The SAX
processingInstruction method does nothing.
|
void | setCatalog(Catalog catalog) - Set the current catalog.
|
void | setDocumentLocator(Locator locator) - The SAX
setDocumentLocator method does nothing.
|
void | startDocument() - The SAX
startDocument method does nothing.
|
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.
|
characters , endDocument , endElement , endElement , endPrefixMapping , getCatalogParser , getParserClass , getParserFactory , ignorableWhitespace , processingInstruction , readCatalog , readCatalog , setCatalogParser , setDocumentLocator , setParserClass , setParserFactory , skippedEntity , startDocument , startElement , startElement , startPrefixMapping |
catalog
protected Catalog catalog
The catalog object needs to be stored by the object so that
SAX callbacks can use it.
XCatalogReader
public XCatalogReader(SAXParserFactory parserFactory)
The constructor
characters
public void characters(ch[] ,
int start,
int length)
throws SAXException
The SAX characters
method does nothing.
- characters in interface SAXCatalogReader
endDocument
public void endDocument()
throws SAXException
The SAX endDocument
method does nothing.
- endDocument in interface SAXCatalogReader
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
The SAX endElement
method does nothing.
- endElement in interface SAXCatalogReader
getCatalog
public Catalog getCatalog()
Get the current catalog.
ignorableWhitespace
public void ignorableWhitespace(ch[] ,
int start,
int length)
throws SAXException
The SAX ignorableWhitespace
method does nothing.
- ignorableWhitespace in interface SAXCatalogReader
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
The SAX processingInstruction
method does nothing.
- processingInstruction in interface SAXCatalogReader
startDocument
public void startDocument()
throws SAXException
The SAX startDocument
method does nothing.
- startDocument in interface SAXCatalogReader
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
The SAX startElement
method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them.
- startElement in interface SAXCatalogReader
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.
Copyright B) 2001-2003 Apache Software Foundation. All Rights Reserved.