net.sf.saxon.s9api

Class MessageListenerProxy

class MessageListenerProxy extends SequenceWriter

This class implements a Receiver that can receive xsl:message output and send it to a user-supplied MessageListener.
Constructor Summary
protected MessageListenerProxy(MessageListener listener)
Method Summary
voidappend(Item item, int locationId, int copyNamespaces)
Append an item to the sequence, performing any necessary type-checking and conversion
voidcharacters(CharSequence s, int locationId, int properties)
Produce text content output.
MessageListenergetMessageListener()
Get the wrapped MessageListener
voidstartDocument(int properties)
Start of a document node.
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Output an element start tag.
voidwrite(Item item)
Abstract method to be supplied by subclasses: output one item in the sequence.

Constructor Detail

MessageListenerProxy

protected MessageListenerProxy(MessageListener listener)

Method Detail

append

public void append(Item item, int locationId, int copyNamespaces)
Append an item to the sequence, performing any necessary type-checking and conversion

characters

public void characters(CharSequence s, int locationId, int properties)
Produce text content output.

Parameters: s The String to be output properties bit-significant flags for extra information, e.g. disable-output-escaping

Throws: net.sf.saxon.trans.XPathException for any failure

getMessageListener

public MessageListener getMessageListener()
Get the wrapped MessageListener

startDocument

public void startDocument(int properties)
Start of a document node.

startElement

public void startElement(int nameCode, int typeCode, int locationId, int properties)
Output an element start tag.

Parameters: nameCode The element name code - a code held in the Name Pool typeCode Integer code identifying the type of this element. Zero identifies the default type, that is xs:anyType properties bit-significant flags indicating any special information

write

public void write(Item item)
Abstract method to be supplied by subclasses: output one item in the sequence.

Parameters: item the item to be written to the sequence