com.xerox.adoc.dexss
Class DeXSS

java.lang.Object
  extended by com.xerox.adoc.dexss.DeXSS

public class DeXSS
extends java.lang.Object

Call createInstance to specify an xssChangeWriter and a Writer. Call process to parse inputString using TagSoup. DeXSS notes any changes to xssChangeWriter, and serializes the resulting document to the Writer.


Method Summary
static DeXSS createInstance(DeXSSChangeListener xssChangeListener, java.io.Writer w)
          Create a DeXSS object using createInstance.
 void process(java.lang.String inputString)
          Call createInstance to specify an xssChangeWriter and a Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static DeXSS createInstance(DeXSSChangeListener xssChangeListener,
                                   java.io.Writer w)
                            throws java.io.IOException,
                                   org.xml.sax.SAXException
Create a DeXSS object using createInstance. Modifications will be noted to xssChangeListener, and the resulting document serialized to w.

Parameters:
xssChangeListener - the DeXSSChangeListener which is informed of changes
w - the Writer to which the parsed document is serialized
Returns:
a DeXSS object
Throws:
java.io.IOException
org.xml.sax.SAXException

process

public void process(java.lang.String inputString)
             throws java.io.IOException,
                    org.xml.sax.SAXException
Call createInstance to specify an xssChangeWriter and a Writer. Call process to parse inputString using TagSoup. DeXSS notes any changes to xssChangeWriter, and serializes the resulting document to the Writer.

Parameters:
inputString - the String to parse
Throws:
java.io.IOException
org.xml.sax.SAXException