public class CDATAFilter extends ProxyEmitter
baseEmitter, outputPropertieslocator, namePool, outputStream, systemId, writerPI_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, startDocumentgetNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriterpublic void startElement(int nameCode,
Attributes atts,
int[] namespaces,
int nscount)
throws TransformerException
startElement in class ProxyEmitternamespaces - Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount - Number of significant entries within namespaces arrayTransformerExceptionpublic void endElement(int nameCode)
throws TransformerException
endElement in class ProxyEmitterTransformerExceptionpublic void processingInstruction(String target, String data) throws TransformerException
processingInstruction in class ProxyEmitterTransformerExceptionpublic void characters(char[] chars,
int start,
int len)
throws TransformerException
characters in class ProxyEmitterTransformerExceptionpublic void ignorableWhitespace(char[] chars,
int start,
int len)
throws TransformerException
TransformerExceptionpublic void comment(char[] chars,
int start,
int len)
throws TransformerException
comment in class ProxyEmitterTransformerExceptionpublic void setEscaping(boolean escaping)
throws TransformerException
setEscaping in class ProxyEmitterTransformerExceptionpublic void flush(StringBuffer buffer) throws TransformerException
TransformerExceptionpublic void setOutputProperties(Properties details)
setOutputProperties in class ProxyEmitterpublic boolean isCDATA(int fingerprint)