com.icl.saxon.output
public class CDATAFilter extends ProxyEmitter
baseEmitter, outputProperties
locator, namePool, outputStream, systemId, writer
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
CDATAFilter() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chars,
int start,
int len)
Output character data
|
void |
comment(char[] chars,
int start,
int len)
Output a comment
|
void |
endElement(int nameCode)
Output element end tag
|
void |
flush(StringBuffer buffer)
Flush the buffer containing accumulated character data,
generating it as CDATA where appropriate
|
void |
ignorableWhitespace(char[] chars,
int start,
int len)
Output ignorable white space
|
boolean |
isCDATA(int fingerprint)
See if a particular element is a CDATA element
|
void |
processingInstruction(String target,
String data)
Output a processing instruction
|
void |
setEscaping(boolean escaping)
Set escaping on or off
|
void |
setOutputProperties(Properties details)
Set output properties
|
void |
startElement(int nameCode,
Attributes atts,
int[] namespaces,
int nscount)
Output element start tag
|
endDocument, setDocumentLocator, setNamePool, setUnderlyingEmitter, setUnparsedEntity, setWriter, startDocument
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
public void startElement(int nameCode, Attributes atts, int[] namespaces, int nscount) throws TransformerException
startElement
in class ProxyEmitter
namespaces
- Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount
- Number of significant entries within namespaces arrayTransformerException
public void endElement(int nameCode) throws TransformerException
endElement
in class ProxyEmitter
TransformerException
public void processingInstruction(String target, String data) throws TransformerException
processingInstruction
in class ProxyEmitter
TransformerException
public void characters(char[] chars, int start, int len) throws TransformerException
characters
in class ProxyEmitter
TransformerException
public void ignorableWhitespace(char[] chars, int start, int len) throws TransformerException
TransformerException
public void comment(char[] chars, int start, int len) throws TransformerException
comment
in class ProxyEmitter
TransformerException
public void setEscaping(boolean escaping) throws TransformerException
setEscaping
in class ProxyEmitter
TransformerException
public void flush(StringBuffer buffer) throws TransformerException
TransformerException
public void setOutputProperties(Properties details)
setOutputProperties
in class ProxyEmitter
public boolean isCDATA(int fingerprint)