public class MessageEmitter extends XMLEmitter
attSpecials, characterReferenceGenerator, declarationIsWritten, delimiter, elementCode, elementStack, indentForNextAttribute, openStartTag, started, startedElement, undeclareNamespaces, unfailing
allCharactersEncodable, characterSet, outputProperties, outputStream, streamResult, writer
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
MessageEmitter() |
Modifier and Type | Method and Description |
---|---|
void |
close()
End of the document.
|
void |
endDocument()
Notify the end of a document node
|
void |
processingInstruction(java.lang.String target,
java.lang.CharSequence data,
Location locationId,
int properties)
Handle a processing instruction.
|
protected boolean |
suppressProcessingInstruction(java.lang.String target,
java.lang.CharSequence data,
Location locationId,
int properties)
Method to decide whether a processing instruction in the message should be suppressed.
|
attribute, characters, closeStartTag, comment, convertToAscii, emptyElementTagCloser, endElement, getAttributeIndentString, isStarted, namespace, open, openDocument, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEscape
append, getOutputProperties, getOutputStream, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setStreamResult, setUnparsedEntity, setWriter, usesWriter
append, getConfiguration, getNamePool, getPipelineConfiguration, getSystemId, isTrueSequenceReceiver, setPipelineConfiguration, setSystemId
public void processingInstruction(java.lang.String target, java.lang.CharSequence data, Location locationId, int properties) throws XPathException
XMLEmitter
processingInstruction
in interface Receiver
processingInstruction
in class XMLEmitter
target
- 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 occursprotected boolean suppressProcessingInstruction(java.lang.String target, java.lang.CharSequence data, Location locationId, int properties)
target
- the processing instruction target (that is, name)data
- the data part of the processing instructionlocationId
- the location, which in the case of the error-code processing instruction, holds
the location of the originating xsl:message instructionproperties
- currently 0.public void endDocument() throws XPathException
XMLEmitter
endDocument
in interface Receiver
endDocument
in class XMLEmitter
XPathException
- if an error occurspublic void close() throws XPathException
XMLEmitter
close
in interface Receiver
close
in class XMLEmitter
XPathException
- if an error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.