| java.lang.Object org.xml.sax.helpers.XMLFilterImpl com.sun.org.apache.xml.internal.resolver.tools.ResolvingXMLFilter
All known Subclasses: com.sun.org.apache.xml.internal.resolver.tools.ResolvingXMLReader,
ResolvingXMLFilter | public class ResolvingXMLFilter extends XMLFilterImpl (Code) | | A SAX XMLFilter that performs catalog-based entity resolution.
This class implements a SAX XMLFilter that performs entity resolution
using the CatalogResolver. The actual, underlying parser is obtained
from a SAXParserFactory.
See Also: CatalogResolver See Also: org.xml.sax.XMLFilter author: Norman Walsh author: Norman.Walsh@Sun.COM version: 1.0 |
Method Summary | |
public Catalog | getCatalog() Provide accessto the underlying Catalog. | public void | notationDecl(String name, String publicId, String systemId) SAX DTDHandler API.
Captured here only to detect the end of the prolog so that
we can ignore subsequent oasis-xml-catalog PIs. | public void | parse(InputSource input) SAX XMLReader API.
Note that the JAXP 1.1ea2 parser crashes with an InternalError if
it encounters a system identifier that appears to be a relative URI
that begins with a slash. | public void | parse(String systemId) SAX XMLReader API. | public void | processingInstruction(String target, String pidata) SAX ContentHandler API. | public InputSource | resolveEntity(String publicId, String systemId) Implements the resolveEntity method
for the SAX interface, using an underlying CatalogResolver
to do the real work. | public void | startElement(String uri, String localName, String qName, Attributes atts) SAX ContentHandler API.
Captured here only to detect the end of the prolog so that
we can ignore subsequent oasis-xml-catalog PIs. | public void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName) SAX DTDHandler API.
Captured here only to detect the end of the prolog so that
we can ignore subsequent oasis-xml-catalog PIs. |
ResolvingXMLFilter | public ResolvingXMLFilter()(Code) | | Construct an empty XML Filter with no parent.
|
ResolvingXMLFilter | public ResolvingXMLFilter(XMLReader parent)(Code) | | Construct an XML filter with the specified parent.
|
ResolvingXMLFilter | public ResolvingXMLFilter(CatalogManager manager)(Code) | | Construct an XML filter with the specified parent.
|
getCatalog | public Catalog getCatalog()(Code) | | Provide accessto the underlying Catalog.
|
notationDecl | public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code) | | SAX DTDHandler API.
Captured here only to detect the end of the prolog so that
we can ignore subsequent oasis-xml-catalog PIs. Otherwise
the events are just passed through.
|
parse | public void parse(InputSource input) throws IOException, SAXException(Code) | | SAX XMLReader API.
Note that the JAXP 1.1ea2 parser crashes with an InternalError if
it encounters a system identifier that appears to be a relative URI
that begins with a slash. For example, the declaration:
<!DOCTYPE book SYSTEM "/path/to/dtd/on/my/system/docbookx.dtd">
would cause such an error. As a convenience, this method catches
that error and prints an explanation. (Unfortunately, it's not possible
to identify the particular system identifier that causes the problem.)
The underlying error is forwarded after printing the explanatory
message. The message is only every printed once and if
suppressExplanation is set to false before
parsing, it will never be printed.
|
processingInstruction | public void processingInstruction(String target, String pidata) throws SAXException(Code) | | SAX ContentHandler API.
Detect and use the oasis-xml-catalog PI if it occurs.
|
resolveEntity | public InputSource resolveEntity(String publicId, String systemId)(Code) | | Implements the resolveEntity method
for the SAX interface, using an underlying CatalogResolver
to do the real work.
|
startElement | public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code) | | SAX ContentHandler API.
Captured here only to detect the end of the prolog so that
we can ignore subsequent oasis-xml-catalog PIs. Otherwise
the events are just passed through.
|
unparsedEntityDecl | public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code) | | SAX DTDHandler API.
Captured here only to detect the end of the prolog so that
we can ignore subsequent oasis-xml-catalog PIs. Otherwise
the events are just passed through.
|
Methods inherited from org.xml.sax.helpers.XMLFilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|