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(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(String namespaceURI,
String localName,
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(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. |
endElement, endPrefixMapping, getCatalogParser, getParserClass, getParserFactory, readCatalog, readCatalog, setCatalogParser, setParserClass, setParserFactory, skippedEntity, startElement, startPrefixMappingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendPrefixMapping, skippedEntity, startPrefixMappingendElement, startElementprotected Catalog catalog
public XCatalogReader(SAXParserFactory parserFactory)
public void setCatalog(Catalog catalog)
setCatalog in interface SAXCatalogParserpublic Catalog getCatalog()
public void setDocumentLocator(Locator locator)
setDocumentLocator method does nothing.setDocumentLocator in interface ContentHandlersetDocumentLocator in interface DocumentHandlersetDocumentLocator in class SAXCatalogReaderpublic void startDocument()
throws SAXException
startDocument method does nothing.startDocument in interface ContentHandlerstartDocument in interface DocumentHandlerstartDocument in class SAXCatalogReaderSAXExceptionpublic void endDocument()
throws SAXException
endDocument method does nothing.endDocument in interface ContentHandlerendDocument in interface DocumentHandlerendDocument in class SAXCatalogReaderSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement method recognizes elements
from the plain catalog format and instantiates CatalogEntry
objects for them.startElement in interface 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.SAXExceptionCatalogEntrypublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement method does nothing.endElement in interface ContentHandlerendElement in class SAXCatalogReaderSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters method does nothing.characters in interface ContentHandlercharacters in interface DocumentHandlercharacters in class SAXCatalogReaderSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace method does nothing.ignorableWhitespace in interface ContentHandlerignorableWhitespace in interface DocumentHandlerignorableWhitespace in class SAXCatalogReaderSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction method does nothing.processingInstruction in interface ContentHandlerprocessingInstruction in interface DocumentHandlerprocessingInstruction in class SAXCatalogReaderSAXExceptionCopyright © 2005–2017 Oracle Corporation. All rights reserved.