public class DeXSSParser extends DeXSSFilterPipeline
DeXSSFilterPipeline
.
Example:
{ DeXSSParser dexssParser = new DeXSSParser(); dexssParser.setContentHandler(new XMLWriter(writer)); InputSource inputSource = new InputSource(); inputSource.setCharacterStream(new StringReader(inputString)); dexssParser.parse(inputSource); }
BODY_ONLY, DEXSS_CHANGE_LISTENER
Constructor and Description |
---|
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. |
getDeXSSChangeListener, getFeature, getProperty, logXSSChange, logXSSChange, logXSSChange, setDeXSSChangeListener, setFeature, setParent, setProperty
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
public DeXSSParser() throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.ccil.cowan.tagsoup.Parser
with the following feature set:
org.ccil.cowan.tagsoup.Parser#ignoreBogonsFeature
true
org.ccil.cowan.tagsoup.Parser#defaultAttributesFeature
false
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException