public class DefaultSaxHandler
extends org.xml.sax.helpers.DefaultHandler
implements org.w3c.dom.ls.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(org.xml.sax.SAXParseException x) |
void |
fatalError(org.xml.sax.SAXParseException x) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
org.w3c.dom.ls.LSInput |
resolveResource(java.lang.String type,
java.lang.String namespaceUri,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseUri)
Allow the application to resolve external resources.
|
void |
skippedEntity(java.lang.String name) |
void |
warning(org.xml.sax.SAXParseException x) |
public void error(org.xml.sax.SAXParseException x)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void fatalError(org.xml.sax.SAXParseException x)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
resolveEntity in interface org.xml.sax.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic org.w3c.dom.ls.LSInput resolveResource(java.lang.String type,
java.lang.String namespaceUri,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseUri)
This implementation always returns a null.
resolveResource in interface org.w3c.dom.ls.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(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void warning(org.xml.sax.SAXParseException x)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionCopyright © 2005-2020 Restlet.