com.jclark.xsl.sax
Class NXMLOutputHandler
java.lang.Object
com.jclark.xsl.sax.NXMLOutputHandler
- DocumentHandler, OutputDocumentHandler
public class NXMLOutputHandler
extends java.lang.Object
an output handler that handles our special technique
for non XML characters
void | characters(char[] ch, int off, int len) - SAX characters event -- send the characters to our current handler
|
void | endDocument() - flush the output
|
void | endElement(String name)
|
void | ignorableWhitespace(char[] ch, int off, int len)
|
DocumentHandler | init(Destination dest, AttributeList atts)
|
void | pop() - pops a character handler off the stack, reverting to previous
(does this need to be public?)
|
void | processingInstruction(String target, String data) - SAX Processing Instruction event handler -- strips PI's from output
|
void | push(NXMLOutputHandler.CharacterHandler handler)
|
void | setDocumentLocator(org.xml.sax.Locator loc)
|
void | startDocument() - SAX startDocument parse event
|
void | startElement(String name, AttributeList atts) - captures "control", "data", "char" and "escape" character indicators
and interposes the appropriate character handler
|
NXMLOutputHandler
public NXMLOutputHandler()
characters
public void characters(char[] ch,
int off,
int len)
throws SAXException
SAX characters event -- send the characters to our current handler
endDocument
public void endDocument()
throws SAXException
flush the output
endElement
public void endElement(String name)
throws SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int off,
int len)
throws SAXException
init
public DocumentHandler init(Destination dest,
AttributeList atts)
throws IOException
- init in interface OutputDocumentHandler
- an initialized instance of this,
ready to write to the destination
pop
public void pop()
pops a character handler off the stack, reverting to previous
(does this need to be public?)
processingInstruction
public void processingInstruction(String target,
String data)
SAX Processing Instruction event handler -- strips PI's from output
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator loc)
startDocument
public void startDocument()
SAX startDocument parse event
startElement
public void startElement(String name,
AttributeList atts)
throws SAXException
captures "control", "data", "char" and "escape" character indicators
and interposes the appropriate character handler