com.icl.saxon.output

Class CDATAFilter

public class CDATAFilter extends ProxyEmitter

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 H. Kay

Method Summary
voidcharacters(char[] chars, int start, int len)
Output character data
voidcomment(char[] chars, int start, int len)
Output a comment
voidendElement(int nameCode)
Output element end tag
voidflush(StringBuffer buffer)
Flush the buffer containing accumulated character data, generating it as CDATA where appropriate
voidignorableWhitespace(char[] chars, int start, int len)
Output ignorable white space
booleanisCDATA(int fingerprint)
See if a particular element is a CDATA element
voidprocessingInstruction(String target, String data)
Output a processing instruction
voidsetEscaping(boolean escaping)
Set escaping on or off
voidsetOutputProperties(Properties details)
Set output properties
voidstartElement(int nameCode, Attributes atts, int[] namespaces, int nscount)
Output element start tag

Method Detail

characters

public void characters(char[] chars, int start, int len)
Output character data

comment

public void comment(char[] chars, int start, int len)
Output a comment

endElement

public void endElement(int nameCode)
Output element end tag

flush

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

ignorableWhitespace

public void ignorableWhitespace(char[] chars, int start, int len)
Output ignorable white space

isCDATA

public boolean isCDATA(int fingerprint)
See if a particular element is a CDATA element

processingInstruction

public void processingInstruction(String target, String data)
Output a processing instruction

setEscaping

public void setEscaping(boolean escaping)
Set escaping on or off

setOutputProperties

public void setOutputProperties(Properties details)
Set output properties

startElement

public void startElement(int nameCode, Attributes atts, int[] namespaces, int nscount)
Output element start tag