|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.output.Outputter
com.icl.saxon.output.StringOutputter
This class allows output to be generated. It channels output requests to an Emitter which does the actual writing. This is a specialized and simplified version that is used to handle xsl:attribute, xsl:comment, and xsl:processing-instruction.
| Field Summary |
| Fields inherited from class com.icl.saxon.output.Outputter |
emitter |
| Constructor Summary | |
StringOutputter(java.lang.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) |
java.util.Properties |
getOutputProperties()
|
void |
reset()
Synchronize the state of the Outputter with that of the underlying Emitter |
void |
setErrorListener(ErrorListener listener)
|
boolean |
thereIsAnOpenStartTag()
Test whether there is an open start tag. |
void |
write(java.lang.String s)
Produce literal output. |
void |
writeAttribute(int nameCode,
java.lang.String value,
boolean noEscape)
Output an attribute value. |
void |
writeComment(java.lang.String comment)
Write a comment. |
void |
writeContent(char[] chars,
int start,
int length)
Produce text content output. |
void |
writeContent(java.lang.String s)
Produce text content output. |
void |
writeEndTag(int nameCode)
Output an element end tag. |
void |
writeNamespaceDeclaration(int nscode)
Output a namespace declaration. |
void |
writePI(java.lang.String target,
java.lang.String data)
Write a processing instruction No-op in this implementation |
void |
writeStartTag(int nameCode)
Output an element start tag. |
| Methods inherited from class com.icl.saxon.output.Outputter |
getEmitter, open, setEscaping, writeAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringOutputter(java.lang.StringBuffer buffer)
| Method Detail |
public void setErrorListener(ErrorListener listener)
public void reset()
throws TransformerException
Outputter
reset in class OutputterTransformerExceptionpublic java.util.Properties getOutputProperties()
getOutputProperties in class Outputter
public void write(java.lang.String s)
throws TransformerException
write in class OutputterTransformerException
public void writeContent(java.lang.String s)
throws TransformerException
writeContent in class Outputters - The String to be output
TransformerException - for any failure
public void writeContent(char[] chars,
int start,
int length)
throws TransformerException
writeContent in class Outputterchars - Character array to be outputstart - start position of characters to be outputlength - number of characters to be output
TransformerException - for any failure
public void writeStartTag(int nameCode)
throws TransformerException
writeStartTag in class OutputternameCode - The element name code
TransformerException
public int checkAttributePrefix(int nameCode)
throws TransformerException
checkAttributePrefix in class OutputterTransformerException
public void writeNamespaceDeclaration(int nscode)
throws TransformerException
writeNamespaceDeclaration in class Outputternscode - The namespace code
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.
public void copyNamespaceNode(int nscode)
throws TransformerException
copyNamespaceNode in class OutputterTransformerExceptionpublic boolean thereIsAnOpenStartTag()
thereIsAnOpenStartTag in class Outputter
public void writeAttribute(int nameCode,
java.lang.String value,
boolean noEscape)
throws TransformerException
writeAttribute in class Outputtervalue - The value of the attributenoEscape - True if it's known there are no special characters in the value. If
unsure, set this to false.
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.
public void writeEndTag(int nameCode)
throws TransformerException
writeEndTag in class OutputternameCode - The element name code
TransformerException
public void writeComment(java.lang.String comment)
throws TransformerException
writeComment in class OutputterTransformerException
public void writePI(java.lang.String target,
java.lang.String data)
throws TransformerException
writePI in class OutputterTransformerException
public void close()
throws TransformerException
close in class OutputterTransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||