|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.event.Outputter | +--net.sf.saxon.event.SimpleContentOutputter
This class allows output to be generated. It channels output requests to an Emitter which does the actual writing. This implementation handles the rules for constructing simple content, which is used when processing the instructions xsl:attribute, xsl:comment, and xsl:processing-instruction.
Field Summary |
Fields inherited from class net.sf.saxon.event.Outputter |
previousAtomic |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
SimpleContentOutputter(java.lang.StringBuffer buffer)
|
Method Summary | |
void |
append(Item item)
Append an arbitrary item (node or atomic value) to the output |
void |
attribute(int nameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
Output an attribute value. |
void |
characters(java.lang.CharSequence s,
int properties)
Produce text content output. |
void |
comment(java.lang.CharSequence comment,
int properties)
Write a comment. |
void |
endDocument()
Close the output |
void |
endElement()
Output an element end tag. |
void |
namespace(int nscode,
int properties)
Output a namespace declaration. |
void |
processingInstruction(java.lang.String target,
java.lang.CharSequence data,
int properties)
Write a processing instruction No-op in this implementation |
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces. |
void |
startElement(int nameCode,
int typeCode,
int properties)
Output an element start tag. |
Methods inherited from class net.sf.saxon.event.Outputter |
getNamePool, getSystemId, setDocumentLocator, setNamePool, setSystemId, setUnparsedEntity, startDocument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleContentOutputter(java.lang.StringBuffer buffer)
Method Detail |
public void characters(java.lang.CharSequence s, int properties) throws javax.xml.transform.TransformerException
s
- The String to be outputproperties
- Bit significant value. The following bits are defined:
javax.xml.transform.TransformerException
- for any failurepublic void startElement(int nameCode, int typeCode, int properties) throws javax.xml.transform.TransformerException
nameCode
- The element name codetypeCode
- integer code identifying the element's type within the name pool.
javax.xml.transform.TransformerException
public void namespace(int nscode, int properties) throws javax.xml.transform.TransformerException
nscode
- The namespace code
javax.xml.transform.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 attribute(int nameCode, int typeCode, java.lang.CharSequence value, int properties) throws javax.xml.transform.TransformerException
nameCode
- The name of the attributetypeCode
- The type annotation of the attributevalue
- The value of the attributeproperties
- Bits identifying properties of the attribute
javax.xml.transform.TransformerException
- if recoverable errors are to be treated as fatal.
(Writing an attribute to this kind of destination is always an error)public void startContent()
Receiver
public void endElement() throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public void comment(java.lang.CharSequence comment, int properties) throws javax.xml.transform.TransformerException
comment
- The content of the commentproperties
- Additional information about the comment. The following bits are
defined:
javax.xml.transform.TransformerException
public void processingInstruction(java.lang.String target, java.lang.CharSequence data, int properties) throws javax.xml.transform.TransformerException
target
- The PI name. This must be a legal name (it will not be checked).data
- The data portion of the processing instructionproperties
- Additional information about the PI. The following bits are
defined:
javax.xml.transform.TransformerException
public void append(Item item) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public void endDocument() throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |