com.xerox.adoc.dexss
Class DeXSSParser

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by com.xerox.adoc.dexss.DeXSSFilterPipeline
          extended by com.xerox.adoc.dexss.DeXSSParser
All Implemented Interfaces:
DeXSSChangeListener, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class DeXSSParser
extends DeXSSFilterPipeline

The DeXSSParser object. This class can be used as a SAX2 XML Parser that first applies TagSoup, then applies the DeXSSFilterPipeline.

Example:

{
  DeXSSParser dexssParser = new DeXSSParser();
  dexssParser.setContentHandler(new XMLWriter(writer));
  InputSource inputSource = new InputSource();
  inputSource.setCharacterStream(new StringReader(inputString));
  dexssParser.parse(inputSource);
}
 


Field Summary
 
Fields inherited from class com.xerox.adoc.dexss.DeXSSFilterPipeline
BODY_ONLY, DEXSS_CHANGE_LISTENER
 
Constructor Summary
DeXSSParser()
          Creates a DeXSSParser with the following feature set: DeXSSFilterPipeline.BODY_ONLY true And uses as parent a org.ccil.cowan.tagsoup.Parser with the following feature set: org.ccil.cowan.tagsoup.Parser#ignoreBogonsFeature true org.ccil.cowan.tagsoup.Parser#defaultAttributesFeature false TODO: Should be made more configurable.
 
Method Summary
 
Methods inherited from class com.xerox.adoc.dexss.DeXSSFilterPipeline
getDeXSSChangeListener, getFeature, getProperty, logXSSChange, logXSSChange, logXSSChange, setDeXSSChangeListener, setFeature, setParent, setProperty
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getParent, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, 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

DeXSSParser

public DeXSSParser()
            throws org.xml.sax.SAXNotRecognizedException,
                   org.xml.sax.SAXNotSupportedException
Creates a DeXSSParser with the following feature set: And uses as parent a org.ccil.cowan.tagsoup.Parser with the following feature set: TODO: Should be made more configurable.

Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException