public class DefaultSaxHandler extends DefaultHandler implements LSResourceResolver
DefaultHandler and
implements the LSResourceResolver interface. All the
methods of this class do nothing besides generating log messages.| Constructor and Description |
|---|
DefaultSaxHandler()
Trivial constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException x) |
void |
fatalError(SAXParseException x) |
InputSource |
resolveEntity(String publicId,
String systemId) |
LSInput |
resolveResource(String type,
String namespaceUri,
String publicId,
String systemId,
String baseUri)
Allow the application to resolve external resources.
|
void |
skippedEntity(String name) |
void |
warning(SAXParseException x) |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, startDocument, startElement, startPrefixMapping, unparsedEntityDeclpublic void error(SAXParseException x) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionpublic void fatalError(SAXParseException x) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandlerIOExceptionSAXExceptionpublic LSInput resolveResource(String type, String namespaceUri, String publicId, String systemId, String baseUri)
This implementation always returns a null.
resolveResource in interface LSResourceResolvertype - The type of the resource being resolved.namespaceUri - The namespace of the resource being resolved.publicId - The public identifier.systemId - The system identifier.baseUri - The absolute base URI of the resource being parsed.null.public void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class DefaultHandlerSAXExceptionpublic void warning(SAXParseException x) throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXExceptionCopyright © 2005–2025. All rights reserved.