an output handler that recognizes our special technique
for signalling non XML characters
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 namespaceURI,
String localName,
String qName)
throws SAXException
endPrefixMapping
public void endPrefixMapping(String prefix)
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int off,
int len)
throws SAXException
init
public ContentHandler init(Destination dest,
Properties props)
throws IOException
- init in interface OutputContentHandler
- an initialized instance of this,
ready to write to the Destination with the
output options specified in props
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)
skippedEntity
public void skippedEntity(String entityName)
startDocument
public void startDocument()
SAX startDocument parse event
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
captures "control", "data", "char" and "escape" character indicators
and interposes the appropriate character handler
startPrefixMapping
public void startPrefixMapping(String prefix,
String namespaceURI)