Class XCatalogReader
- java.lang.Object
-
- org.jboss.util.xml.catalog.readers.SAXCatalogReader
-
- org.jboss.util.xml.catalog.readers.XCatalogReader
-
- All Implemented Interfaces:
CatalogReader,SAXCatalogParser,org.xml.sax.ContentHandler,org.xml.sax.DocumentHandler
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
- See Also:
Catalog
-
-
Field Summary
Fields Modifier and Type Field Description protected CatalogcatalogThe catalog object needs to be stored by the object so that SAX callbacks can use it.-
Fields inherited from class org.jboss.util.xml.catalog.readers.SAXCatalogReader
debug, namespaceMap, parserClass, parserFactory
-
-
Constructor Summary
Constructors Constructor Description XCatalogReader(javax.xml.parsers.SAXParserFactory parserFactory)The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)The SAXcharactersmethod does nothing.voidendDocument()The SAXendDocumentmethod does nothing.voidendElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)The SAXendElementmethod does nothing.CataloggetCatalog()voidignorableWhitespace(char[] ch, int start, int length)The SAXignorableWhitespacemethod does nothing.voidprocessingInstruction(java.lang.String target, java.lang.String data)The SAXprocessingInstructionmethod does nothing.voidsetCatalog(Catalog catalog)Set the current catalog.voidsetDocumentLocator(org.xml.sax.Locator locator)The SAXsetDocumentLocatormethod does nothing.voidstartDocument()The SAXstartDocumentmethod does nothing.voidstartElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)The SAXstartElementmethod recognizes elements from the plain catalog format and instantiates CatalogEntry objects for them.-
Methods inherited from class org.jboss.util.xml.catalog.readers.SAXCatalogReader
endElement, endPrefixMapping, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setParserClass, setParserFactory, skippedEntity, startElement, startPrefixMapping
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
catalog
protected Catalog catalog
The catalog object needs to be stored by the object so that SAX callbacks can use it.
-
-
Method Detail
-
setCatalog
public void setCatalog(Catalog catalog)
Set the current catalog.- Specified by:
setCatalogin interfaceSAXCatalogParser
-
getCatalog
public Catalog getCatalog()
- Returns:
- the current catalog.
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
The SAXsetDocumentLocatormethod does nothing.- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.ContentHandler- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.DocumentHandler- Overrides:
setDocumentLocatorin classSAXCatalogReader
-
startDocument
public void startDocument() throws org.xml.sax.SAXExceptionThe SAXstartDocumentmethod does nothing.- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler- Specified by:
startDocumentin interfaceorg.xml.sax.DocumentHandler- Overrides:
startDocumentin classSAXCatalogReader- Throws:
org.xml.sax.SAXException
-
endDocument
public void endDocument() throws org.xml.sax.SAXExceptionThe SAXendDocumentmethod does nothing.- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler- Specified by:
endDocumentin interfaceorg.xml.sax.DocumentHandler- Overrides:
endDocumentin classSAXCatalogReader- Throws:
org.xml.sax.SAXException
-
startElement
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXExceptionThe SAXstartElementmethod recognizes elements from the plain catalog format and instantiates CatalogEntry objects for them.- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classSAXCatalogReader- 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.- Throws:
org.xml.sax.SAXException- See Also:
CatalogEntry
-
endElement
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXExceptionThe SAXendElementmethod does nothing.- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classSAXCatalogReader- Throws:
org.xml.sax.SAXException
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionThe SAXcharactersmethod does nothing.- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Specified by:
charactersin interfaceorg.xml.sax.DocumentHandler- Overrides:
charactersin classSAXCatalogReader- Throws:
org.xml.sax.SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionThe SAXignorableWhitespacemethod does nothing.- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.ContentHandler- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.DocumentHandler- Overrides:
ignorableWhitespacein classSAXCatalogReader- Throws:
org.xml.sax.SAXException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXExceptionThe SAXprocessingInstructionmethod does nothing.- Specified by:
processingInstructionin interfaceorg.xml.sax.ContentHandler- Specified by:
processingInstructionin interfaceorg.xml.sax.DocumentHandler- Overrides:
processingInstructionin classSAXCatalogReader- Throws:
org.xml.sax.SAXException
-
-