javax.xml.transform.Result
, Receiver
class MessageListenerProxy extends SequenceWriter
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
pipelineConfiguration, previousAtomic, systemId
Modifier | Constructor | Description |
---|---|---|
protected |
MessageListenerProxy(MessageListener listener,
PipelineConfiguration pipe) |
Modifier and Type | Method | Description |
---|---|---|
void |
append(Item item,
int locationId,
int copyNamespaces) |
Append an item to the sequence, performing any necessary type-checking and conversion
|
void |
characters(java.lang.CharSequence s,
int locationId,
int properties) |
Produce text content output.
|
MessageListener |
getMessageListener() |
Get the wrapped MessageListener
|
void |
startDocument(int properties) |
Start of a document node.
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
int locationId,
int properties) |
Output an element start tag.
|
void |
write(Item item) |
Abstract method to be supplied by subclasses: output one item in the sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, getConfiguration, getNamePool, getPipelineConfiguration, getSystemId, open, setPipelineConfiguration, setSystemId, setUnparsedEntity
adviseReuse, attribute, close, comment, endDocument, endElement, namespace, processingInstruction, startContent, usesTypeAnnotations
protected MessageListenerProxy(MessageListener listener, PipelineConfiguration pipe)
public MessageListener getMessageListener()
public void startDocument(int properties) throws XPathException
startDocument
in interface Receiver
startDocument
in class SequenceWriter
properties
- bit-significant integer indicating properties of the document node.
The definitions of the bits are in class ReceiverOptions
XPathException
- if an error occurspublic void startElement(NodeName nameCode, SchemaType typeCode, int locationId, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class SequenceWriter
nameCode
- 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:anyTypeproperties
- bit-significant flags indicating any special informationlocationId
- an integer which can be interpreted using a LocationProvider
to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.XPathException
- if an error occurspublic void characters(java.lang.CharSequence s, int locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class SequenceWriter
s
- The String to be outputproperties
- bit-significant flags for extra information, e.g. disable-output-escapinglocationId
- an integer which can be interpreted using a LocationProvider
to return information such as line number and system ID. If no location information is available,
the value zero is supplied.XPathException
- for any failurepublic void append(Item item, int locationId, int copyNamespaces) throws XPathException
append
in class SequenceWriter
item
- 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 NodeInfo.ALL_NAMESPACES
,
NodeInfo.LOCAL_NAMESPACES
, NodeInfo.NO_NAMESPACES
XPathException
- if the operation failspublic void write(Item item) throws XPathException
write
in class SequenceWriter
item
- the item to be written to the sequenceXPathException
- if any failure occurs while writing the item