org.apache.xml.resolver.readers
public class XCatalogReader extends SAXCatalogReader implements SAXCatalogParser
Catalog
Modifier and Type | Field and Description |
---|---|
protected Catalog |
catalog
The catalog object needs to be stored by the object so that
SAX callbacks can use it.
|
debug, namespaceMap, parserClass, parserFactory
Constructor and Description |
---|
XCatalogReader(javax.xml.parsers.SAXParserFactory parserFactory)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
The SAX
characters method does nothing. |
void |
endDocument()
The SAX
endDocument method does nothing. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
The SAX
endElement method does nothing. |
Catalog |
getCatalog()
Get the current catalog.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
The SAX
ignorableWhitespace method does nothing. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
The SAX
processingInstruction method does nothing. |
void |
setCatalog(Catalog catalog)
Set the current catalog.
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
The SAX
setDocumentLocator method does nothing. |
void |
startDocument()
The SAX
startDocument method does nothing. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
The SAX
startElement method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them. |
endElement, endPrefixMapping, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setParserClass, setParserFactory, skippedEntity, startElement, startPrefixMapping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected Catalog catalog
public XCatalogReader(javax.xml.parsers.SAXParserFactory parserFactory)
public void setCatalog(Catalog catalog)
setCatalog
in interface SAXCatalogParser
public Catalog getCatalog()
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
method does nothing.setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in interface org.xml.sax.DocumentHandler
setDocumentLocator
in class SAXCatalogReader
public void startDocument() throws org.xml.sax.SAXException
startDocument
method does nothing.startDocument
in interface org.xml.sax.ContentHandler
startDocument
in interface org.xml.sax.DocumentHandler
startDocument
in class SAXCatalogReader
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
method does nothing.endDocument
in interface org.xml.sax.ContentHandler
endDocument
in interface org.xml.sax.DocumentHandler
endDocument
in class SAXCatalogReader
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them.startElement
in interface org.xml.sax.ContentHandler
startElement
in class 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.org.xml.sax.SAXException
CatalogEntry
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
method does nothing.endElement
in interface org.xml.sax.ContentHandler
endElement
in class SAXCatalogReader
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
method does nothing.characters
in interface org.xml.sax.ContentHandler
characters
in interface org.xml.sax.DocumentHandler
characters
in class SAXCatalogReader
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
method does nothing.ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
ignorableWhitespace
in class SAXCatalogReader
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
method does nothing.processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in interface org.xml.sax.DocumentHandler
processingInstruction
in class SAXCatalogReader
org.xml.sax.SAXException
Copyright ? 2001-2003 Apache Software Foundation. All Rights Reserved.