|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.output.Outputter
This class allows output to be generated. It channels output requests to an Emitter which does the actual writing.
Constructor Summary | |
Outputter(NamePool pool)
|
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) |
protected void |
flushStartTag()
Flush out a pending start tag |
Emitter |
getEmitter()
Get emitter. |
OutputDetails |
getOutputDetails()
|
void |
open()
Start the output process |
void |
setEmitter(Emitter handler)
Set the emitter that will deal with this output |
void |
setEscaping(boolean escaping)
Switch escaping (of special characters) on or off. |
void |
setOutputDetails(OutputDetails details)
|
void |
write(java.lang.String s)
|
void |
writeAttribute(int nameCode,
java.lang.String value)
Output an attribute value. |
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 |
writeContent(java.lang.StringBuffer chars,
int start,
int len)
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 |
void |
writeStartTag(int nameCode)
Output an element start tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Outputter(NamePool pool)
Method Detail |
public void setEmitter(Emitter handler)
public Emitter getEmitter() throws org.xml.sax.SAXException
public void setOutputDetails(OutputDetails details) throws org.xml.sax.SAXException
public OutputDetails getOutputDetails()
public void setEscaping(boolean escaping) throws org.xml.sax.SAXException
escaping:
- true if special characters are to be escaped, false if not.public void open() throws org.xml.sax.SAXException
public void write(java.lang.String s) throws org.xml.sax.SAXException
public void writeContent(java.lang.String s) throws org.xml.sax.SAXException
s
- The String to be outputorg.xml.sax.SAXException
- for any failurepublic void writeContent(char[] chars, int start, int length) throws org.xml.sax.SAXException
chars
- Character array to be outputstart
- start position of characters to be outputlength
- number of characters to be outputorg.xml.sax.SAXException
- for any failurepublic void writeContent(java.lang.StringBuffer chars, int start, int len) throws org.xml.sax.SAXException
chars
- StringBuffer containing to be outputstart
- start position of characters to be outputlen
- number of characters to be outputorg.xml.sax.SAXException
- for any failurepublic void writeStartTag(int nameCode) throws org.xml.sax.SAXException
nameCode
- The element name codepublic int checkAttributePrefix(int nameCode) throws org.xml.sax.SAXException
public void writeNamespaceDeclaration(int nscode) throws org.xml.sax.SAXException
nscode
- The namespace codeorg.xml.sax.SAXException
- 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 org.xml.sax.SAXException
public void writeAttribute(int nameCode, java.lang.String value) throws org.xml.sax.SAXException
nameCode
- The name code of the attributevalue
- The value of the attributeorg.xml.sax.SAXException
- 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 writeAttribute(int nameCode, java.lang.String value, boolean noEscape) throws org.xml.sax.SAXException
name
- The name of the attributevalue
- The value of the attributenoEscape
- True if it's known there are no special characters in the value. If
unsure, set this to false.org.xml.sax.SAXException
- 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 org.xml.sax.SAXException
nameCode
- The element name codepublic void writeComment(java.lang.String comment) throws org.xml.sax.SAXException
public void writePI(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
public void close() throws org.xml.sax.SAXException
protected void flushStartTag() throws org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |