|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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(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,
CharSequence value,
int properties)
Output an attribute value. |
void |
characters(CharSequence s,
int properties)
Produce text content output. |
void |
comment(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(String target,
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(StringBuffer buffer)
Method Detail |
public void characters(CharSequence s, int properties) throws TransformerException
s
- The String to be outputproperties
- Bit significant value. The following bits are defined:
TransformerException
- for any failurepublic void startElement(int nameCode, int typeCode, int properties) throws TransformerException
nameCode
- The element name codetypeCode
- integer code identifying the element's type within the name pool.
TransformerException
public void namespace(int nscode, int properties) throws TransformerException
nscode
- 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 attribute(int nameCode, int typeCode, CharSequence value, int properties) throws TransformerException
nameCode
- The name of the attributetypeCode
- The type annotation of the attributevalue
- The value of the attributeproperties
- Bits identifying properties of the attribute
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 TransformerException
TransformerException
public void comment(CharSequence comment, int properties) throws TransformerException
comment
- The content of the commentproperties
- Additional information about the comment. The following bits are
defined:
TransformerException
public void processingInstruction(String target, CharSequence data, int properties) throws 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:
TransformerException
public void append(Item item) throws TransformerException
TransformerException
public void endDocument() throws TransformerException
TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |