net.sf.saxon.event

Class CDATAFilter

public class CDATAFilter extends ProxyReceiver

CDATAFilter: This ProxyEmitter converts character data to CDATA sections, if the character data belongs to one of a set of element types to be handled this way.

Author: Michael Kay

Method Summary
voidcharacters(CharSequence chars, int locationId, int properties)
Output character data
voidcomment(CharSequence chars, int locationId, int properties)
Output a comment
voidendElement()
Output element end tag
voidflush(FastStringBuffer buffer)
Flush the buffer containing accumulated character data, generating it as CDATA where appropriate
voidprocessingInstruction(String target, CharSequence data, int locationId, int properties)
Output a processing instruction
voidsetOutputProperties(Properties details)
Set the properties for this CDATA filter
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Output element start tag

Method Detail

characters

public void characters(CharSequence chars, int locationId, int properties)
Output character data

comment

public void comment(CharSequence chars, int locationId, int properties)
Output a comment

endElement

public void endElement()
Output element end tag

flush

public void flush(FastStringBuffer buffer)
Flush the buffer containing accumulated character data, generating it as CDATA where appropriate

processingInstruction

public void processingInstruction(String target, CharSequence data, int locationId, int properties)
Output a processing instruction

setOutputProperties

public void setOutputProperties(Properties details)
Set the properties for this CDATA filter

startElement

public void startElement(int nameCode, int typeCode, int locationId, int properties)
Output element start tag