public class DefaultSaxHandler extends org.xml.sax.helpers.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 org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void fatalError(SAXParseException x) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity in interface EntityResolverresolveEntity in class org.xml.sax.helpers.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 org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void warning(SAXParseException x) throws SAXException
warning in interface ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2005–2016. All rights reserved.