|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.resolver.tools.ResolvingParser
ResolvingXMLReader
for SAX2.
A SAX Parser that performs catalog-based entity resolution.
Copyright © 2000, 2001 Sun Microsystems, Inc. All Rights Reserved. This software is the proprietary information of Sun Microsystems, Inc. Use is subject to license terms.
This class implements a SAX Parser that performs entity resolution using the CatalogResolver. The actual, underlying parser is obtained from a SAXParserFactory.
CatalogResolver
,
Parser
Field Summary | |
static boolean |
namespaceAware
Deprecated. Make the parser Namespace aware? |
static boolean |
suppressExplanation
Deprecated. Suppress explanatory message? |
static boolean |
validating
Deprecated. Make the parser validating? |
Constructor Summary | |
ResolvingParser()
Deprecated. Constructor |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Deprecated. SAX DocumentHandler API |
void |
endDocument()
Deprecated. SAX DocumentHandler API |
void |
endElement(java.lang.String name)
Deprecated. SAX DocumentHandler API |
Catalog |
getCatalog()
Deprecated. Return the Catalog being used |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Deprecated. SAX DocumentHandler API |
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Deprecated. SAX DTDHandler API |
void |
parse(org.xml.sax.InputSource input)
Deprecated. SAX Parser 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. |
void |
parse(java.lang.String systemId)
Deprecated. SAX Parser API |
void |
processingInstruction(java.lang.String target,
java.lang.String pidata)
Deprecated. SAX DocumentHandler API |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Deprecated. Implements the resolveEntity method
for the SAX interface, using an underlying CatalogResolver
to do the real work. |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Deprecated. SAX Parser API |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Deprecated. SAX DocumentHandler API |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Deprecated. SAX Parser API |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Deprecated. SAX Parser API The purpose of this class is to implement an entity resolver. |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
Deprecated. SAX Parser API |
void |
setLocale(java.util.Locale locale)
Deprecated. SAX Parser API |
void |
startDocument()
Deprecated. SAX DocumentHandler API |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
Deprecated. SAX DocumentHandler API |
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
Deprecated. SAX DTDHandler API |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean namespaceAware
public static boolean validating
public static boolean suppressExplanation
parse(InputSource)
Constructor Detail |
public ResolvingParser()
Method Detail |
public Catalog getCatalog()
public void parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException
SAX Parser 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.
parse
in interface org.xml.sax.Parser
java.io.IOException
org.xml.sax.SAXException
public void parse(java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.Parser
java.io.IOException
org.xml.sax.SAXException
parse(InputSource)
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler
in interface org.xml.sax.Parser
public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.Parser
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
SAX Parser API
The purpose of this class is to implement an entity resolver. Attempting to set a different one is pointless (and ignored).
setEntityResolver
in interface org.xml.sax.Parser
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler
in interface org.xml.sax.Parser
public void setLocale(java.util.Locale locale) throws org.xml.sax.SAXException
setLocale
in interface org.xml.sax.Parser
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String pidata) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.DocumentHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
notationDecl
in interface org.xml.sax.DTDHandler
org.xml.sax.SAXException
public void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName) throws org.xml.sax.SAXException
unparsedEntityDecl
in interface org.xml.sax.DTDHandler
org.xml.sax.SAXException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
Implements the resolveEntity
method
for the SAX interface, using an underlying CatalogResolver
to do the real work.
resolveEntity
in interface org.xml.sax.EntityResolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |