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, unparsedEntityDecl
public void error(SAXParseException x) throws SAXException
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void fatalError(SAXParseException x) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
IOException
SAXException
public LSInput resolveResource(String type, String namespaceUri, String publicId, String systemId, String baseUri)
This implementation always returns a null
.
resolveResource
in interface LSResourceResolver
type
- 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 ContentHandler
skippedEntity
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void warning(SAXParseException x) throws SAXException
warning
in interface ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2005–2015. All rights reserved.