Package net.sf.saxon.serialize
Class AdaptiveEmitter
java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.SequenceWriter
net.sf.saxon.serialize.AdaptiveEmitter
- All Implemented Interfaces:
Result,Receiver,ReceiverWithOutputProperties
This class implements the Adaptive serialization method defined in XSLT+XQuery Serialization 3.1.
-
Field Summary
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemIdFields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Notify the end of the event streamGet the serialization properties maintained by thisReceivervoidSet the CharacterMap to be used, if anyvoidsetMustClose(boolean mustClose) Say whether the output must be closed on completionvoidsetNormalizationForm(Normalizer.Form normalizationForm) Set the Unicode normalizer to be used for normalizing strings.voidsetOutputProperties(Properties props) voidAbstract method to be supplied by subclasses: output one item in the sequence.Methods inherited from class net.sf.saxon.event.SequenceWriter
append, characters, comment, endDocument, endElement, getTreeModel, processingInstruction, setTreeModel, setUnparsedEntity, startDocument, startElement, usesTypeAnnotationsMethods inherited from class net.sf.saxon.event.SequenceReceiver
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, open, setPipelineConfiguration, setSystemIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.event.Receiver
append, append, characters, comment, endDocument, endElement, getPipelineConfiguration, handlesAppend, open, processingInstruction, setPipelineConfiguration, setUnparsedEntity, startDocument, startElement, usesTypeAnnotationsMethods inherited from interface javax.xml.transform.Result
getSystemId, setSystemId
-
Constructor Details
-
AdaptiveEmitter
-
-
Method Details
-
setOutputProperties
-
setNormalizationForm
Set the Unicode normalizer to be used for normalizing strings.- Parameters:
normalizationForm- the normalizationForm to be used
-
setMustClose
public void setMustClose(boolean mustClose) Say whether the output must be closed on completion- Parameters:
mustClose- true if the output must be closed
-
setCharacterMap
Set the CharacterMap to be used, if any- Parameters:
map- the character map
-
getOutputProperties
Description copied from interface:ReceiverWithOutputPropertiesGet the serialization properties maintained by thisReceiver- Specified by:
getOutputPropertiesin interfaceReceiverWithOutputProperties- Returns:
- the serialization properties
-
write
Abstract method to be supplied by subclasses: output one item in the sequence.- Specified by:
writein classSequenceWriter- Parameters:
item- the item to be written to the sequence- Throws:
XPathException- if any failure occurs while writing the item
-
close
Description copied from interface:ReceiverNotify the end of the event stream- Specified by:
closein interfaceReceiver- Overrides:
closein classSequenceWriter- Throws:
XPathException- if an error occurs
-