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()
Default constructor
|
XCatalogReader(javax.xml.parsers.SAXParserFactory parserFactory,
Catalog catalog)
Constructor allowing for providing custom SAX parser factory
|
| 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. |
void |
endPrefixMapping(java.lang.String prefix)
The SAX
endPrefixMapping 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 |
skippedEntity(java.lang.String name)
The SAX
skippedEntity 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. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
The SAX
startPrefixMapping method does nothing. |
endElement, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setClassLoader, setParserClass, setParserFactory, startElementprotected Catalog catalog
public XCatalogReader()
public XCatalogReader(javax.xml.parsers.SAXParserFactory parserFactory,
Catalog catalog)
public void setCatalog(Catalog catalog)
setCatalog in interface SAXCatalogParserpublic Catalog getCatalog()
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator method does nothing.setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in interface org.xml.sax.DocumentHandlersetDocumentLocator in class SAXCatalogReaderpublic void startDocument()
throws org.xml.sax.SAXException
startDocument method does nothing.startDocument in interface org.xml.sax.ContentHandlerstartDocument in interface org.xml.sax.DocumentHandlerstartDocument in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument method does nothing.endDocument in interface org.xml.sax.ContentHandlerendDocument in interface org.xml.sax.DocumentHandlerendDocument in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic 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.ContentHandlerstartElement in class SAXCatalogReadernamespaceURI - 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.SAXExceptionCatalogEntrypublic 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.ContentHandlerendElement in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters method does nothing.characters in interface org.xml.sax.ContentHandlercharacters in interface org.xml.sax.DocumentHandlercharacters in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace method does nothing.ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in interface org.xml.sax.DocumentHandlerignorableWhitespace in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic 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.ContentHandlerprocessingInstruction in interface org.xml.sax.DocumentHandlerprocessingInstruction in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity method does nothing.skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping method does nothing.startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class SAXCatalogReaderorg.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping method does nothing.endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class SAXCatalogReaderorg.xml.sax.SAXExceptionCopyright ? 2001-2003 Apache Software Foundation. All Rights Reserved.