|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.xerox.adoc.dexss.DeXSSFilterPipeline
com.xerox.adoc.dexss.DeXSSParser
public class DeXSSParser
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 |
|---|
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 trueorg.ccil.cowan.tagsoup.Parser#defaultAttributesFeature false
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||