class MessageListener2Proxy extends SequenceWriter
pipelineConfiguration, previousAtomic, systemIdPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Modifier | Constructor and Description |
|---|---|
protected |
MessageListener2Proxy(MessageListener2 listener,
PipelineConfiguration pipe) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Item item,
Location locationId,
int copyNamespaces)
Append an item to the sequence, performing any necessary type-checking and conversion
|
void |
characters(CharSequence s,
Location locationId,
int properties)
Produce text content output.
|
MessageListener2 |
getMessageListener()
Get the wrapped MessageListener
|
void |
processingInstruction(String target,
CharSequence data,
Location locationId,
int properties)
Output a processing instruction
|
void |
startDocument(int properties)
Start of a document node.
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
Location location,
int properties)
Output an element start tag.
|
void |
write(Item item)
Abstract method to be supplied by subclasses: output one item in the sequence.
|
attribute, bulkCopyElementNode, close, comment, endDocument, endElement, getTreeModel, graftElementNode, isReadyForBulkCopy, isReadyForGrafting, namespace, setTreeModel, setUnparsedEntity, startContent, usesTypeAnnotationsappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, open, setPipelineConfiguration, setSystemIdprotected MessageListener2Proxy(MessageListener2 listener, PipelineConfiguration pipe)
public MessageListener2 getMessageListener()
public void startDocument(int properties)
throws XPathException
startDocument in interface ReceiverstartDocument in class SequenceWriterproperties - bit-significant integer indicating properties of the document node.
The definitions of the bits are in class ReceiverOptionsXPathException - if an error occurspublic void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException
startElement in interface ReceiverstartElement in class SequenceWriternameCode - The element name code - a code held in the Name PooltypeCode - Integer code identifying the type of this element. Zero identifies the default
type, that is xs:anyTypelocation - properties - bit-significant flags indicating any special informationXPathException - if an error occurspublic void characters(CharSequence s, Location locationId, int properties) throws XPathException
characters in interface Receivercharacters in class SequenceWriters - The String to be outputlocationId - the location of the node in the source, or of the instruction that created itproperties - bit-significant flags for extra information, e.g. disable-output-escaping @throws net.sf.saxon.trans.XPathException
for any failureXPathException - if an error occurspublic void processingInstruction(String target, CharSequence data, Location locationId, int properties) throws XPathException
ReceiverprocessingInstruction in interface ReceiverprocessingInstruction in class SequenceWritertarget - The PI name. This must be a legal name (it will not be checked).data - The data portion of the processing instructionlocationId - provides information such as line number and system ID.properties - Additional information about the PI.XPathException - if an error occurspublic void append(Item item, Location locationId, int copyNamespaces) throws XPathException
append in interface Receiverappend in class SequenceWriteritem - the item to be appendedlocationId - the location of the calling instruction, for diagnosticscopyNamespaces - if the item is an element node, this indicates whether its namespaces
need to be copied. Values are ReceiverOptions.ALL_NAMESPACES,
ReceiverOptions.LOCAL_NAMESPACES; the default (0) means
no namespacesXPathExceptionpublic void write(Item item) throws XPathException
write in class SequenceWriteritem - the item to be written to the sequenceXPathException - if any failure occurs while writing the item