Package com.saxonica.serialize
Class XQueryEmitter
java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.serialize.Emitter
net.sf.saxon.serialize.XMLEmitter
com.saxonica.serialize.XQueryEmitter
- All Implemented Interfaces:
- Result,- Receiver,- ReceiverWithOutputProperties
The XQueryEmitter is designed to serialize an XQuery that was originally embedded in an
 XML document. It is a variant of the XMLEmitter, and differs in that the operators <, >, <=, >=, <<, and >>
 are output without escaping. They are recognized by virtue of the fact that they appear in text or attribute
 content between curly braces but not in quotes.
- 
Field SummaryFields inherited from class net.sf.saxon.serialize.XMLEmitterattSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, DOCTYPE, elementCode, elementStack, indentForNextAttribute, internalSubset, openStartTag, RIGHT_ANGLE_NEWLINE, specialInAtt, specialInAttSingle, specialInText, started, startedElement, undeclareNamespaces, unfailingFields inherited from class net.sf.saxon.serialize.EmitterallCharactersEncodable, characterSet, outputProperties, writerFields inherited from class net.sf.saxon.event.SequenceReceiverpipelineConfiguration, previousAtomic, systemIdFields inherited from interface javax.xml.transform.ResultPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidwriteEscape(UnicodeString chars, boolean inAttribute) Write contents of array to current writer, after escaping special characters.Methods inherited from class net.sf.saxon.serialize.XMLEmittercharacters, close, closeStartTag, comment, convertToAscii, endDocument, endElement, isStarted, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeAttributeIndentString, writeCodePoint, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEmptyElementTagCloserMethods inherited from class net.sf.saxon.serialize.Emitterappend, getOutputProperties, setMustClose, setOutputProperties, setUnicodeWriter, setUnparsedEntityMethods inherited from class net.sf.saxon.event.SequenceReceiverappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemIdMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.event.Receiverappend, getPipelineConfiguration, handlesAppend, setPipelineConfigurationMethods inherited from interface javax.xml.transform.ResultgetSystemId, setSystemId
- 
Constructor Details- 
XQueryEmitterpublic XQueryEmitter()
 
- 
- 
Method Details- 
writeEscapeprotected void writeEscape(UnicodeString chars, boolean inAttribute) throws IOException, XPathException Write contents of array to current writer, after escaping special characters. This method converts the XML special characters (such as < and &) into their predefined entities.- Overrides:
- writeEscapein class- XMLEmitter
- Parameters:
- chars- The character sequence containing the string
- inAttribute- Set to true if the text is in an attribute value
- Throws:
- IOException- if an IO exception occurs
- XPathException- if an IO exception occurs
 
 
-