com.sodius.mdw.core.util.io
Class XHTMLDefaultHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.sodius.mdw.core.util.io.XHTMLDefaultHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class XHTMLDefaultHandler
extends DefaultHandler

Default base class for XHTML stream handlers. This handler will resolve XHTML entities using a local cached DTD. This enables to parse XHTML streams without requiring an access to the network.

Clients may subclass this class.

Since:
MDWorkbench 3.1.0

Constructor Summary
XHTMLDefaultHandler()
           
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
          Resolves an XHTML entity using a local cached DTD.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHTMLDefaultHandler

public XHTMLDefaultHandler()
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Resolves an XHTML entity using a local cached DTD.

Specified by:
resolveEntity in interface EntityResolver
Overrides:
resolveEntity in class DefaultHandler
Throws:
SAXException
IOException