org.restlet.engine.util
Class DefaultSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.restlet.engine.util.DefaultSaxHandler
- All Implemented Interfaces:
- LSResourceResolver, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class DefaultSaxHandler
- extends DefaultHandler
- implements LSResourceResolver
A Utility class which extends the provided DefaultHandler
and
implements the LSResourceResolver
interface. All the
methods of this class do nothing besides generating log messages.
- Author:
- Raif S. Naffah, Jerome Louvel
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSaxHandler
public DefaultSaxHandler()
- Trivial constructor.
error
public void error(SAXParseException x)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Overrides:
error
in class DefaultHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException x)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Overrides:
fatalError
in class DefaultHandler
- Throws:
SAXException
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
- Specified by:
resolveEntity
in interface EntityResolver
- Overrides:
resolveEntity
in class DefaultHandler
- Throws:
IOException
SAXException
resolveResource
public LSInput resolveResource(String type,
String namespaceUri,
String publicId,
String systemId,
String baseUri)
- Allow the application to resolve external resources.
This implementation always returns a null
.
- Specified by:
resolveResource
in interface LSResourceResolver
- Parameters:
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.
- Returns:
- Always
null
.
skippedEntity
public void skippedEntity(String name)
throws SAXException
- Specified by:
skippedEntity
in interface ContentHandler
- Overrides:
skippedEntity
in class DefaultHandler
- Throws:
SAXException
warning
public void warning(SAXParseException x)
throws SAXException
- Specified by:
warning
in interface ErrorHandler
- Overrides:
warning
in class DefaultHandler
- Throws:
SAXException
Copyright © 2005-2013 Restlet.