com.icl.saxon.output
public final class StringOutputter extends Outputter
Field Summary | |
---|---|
StringBuffer | buffer |
ErrorListener | errorListener |
int | ignoreElements |
Constructor Summary | |
---|---|
StringOutputter(StringBuffer buffer) |
Method Summary | |
---|---|
int | checkAttributePrefix(int nameCode)
Check that the prefix for an attribute is acceptable, returning a substitute
prefix if not. |
void | close()
Close the output |
void | copyNamespaceNode(int nscode)
Copy a namespace node to the current element node
(Rules defined in XSLT 1.0 errata) |
Properties | getOutputProperties() |
void | reset() |
void | setErrorListener(ErrorListener listener) |
boolean | thereIsAnOpenStartTag()
Test whether there is an open start tag. |
void | write(String s)
Produce literal output. |
void | writeAttribute(int nameCode, String value, boolean noEscape)
Output an attribute value. |
void | writeComment(String comment)
Write a comment.
|
void | writeContent(String s)
Produce text content output. |
void | writeContent(char[] chars, int start, int length)
Produce text content output. |
void | writeEndTag(int nameCode)
Output an element end tag. |
void | writeNamespaceDeclaration(int nscode)
Output a namespace declaration. |
void | writePI(String target, String data)
Write a processing instruction
No-op in this implementation |
void | writeStartTag(int nameCode)
Output an element start tag. |
Parameters: name The name of the attribute value The value of the attribute noEscape True if it's known there are no special characters in the value. If unsure, set this to false.
Throws: TransformerException if there is no start tag to write to (created using writeStartTag), or if character content has been written since the start tag was written.
Parameters: s The String to be output
Throws: TransformerException for any failure
Parameters: chars Character array to be output start start position of characters to be output length number of characters to be output
Throws: TransformerException for any failure
Parameters: nameCode The element name code
Parameters: nscode The namespace code
Throws: TransformerException if there is no start tag to write to (created using writeStartTag), or if character content has been written since the start tag was written.
Parameters: nameCode The element name code