Class AdaptiveEmitter

All Implemented Interfaces:
Result, Receiver, ReceiverWithOutputProperties

public class AdaptiveEmitter extends SequenceWriter implements ReceiverWithOutputProperties
This class implements the Adaptive serialization method defined in XSLT+XQuery Serialization 3.1.
  • Constructor Details

  • Method Details

    • setOutputProperties

      public void setOutputProperties(Properties props)
    • setNormalizationForm

      public void setNormalizationForm(Normalizer.Form normalizationForm)
      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

      public void setCharacterMap(CharacterMap map)
      Set the CharacterMap to be used, if any
      Parameters:
      map - the character map
    • getOutputProperties

      public Properties getOutputProperties()
      Description copied from interface: ReceiverWithOutputProperties
      Get the serialization properties maintained by this Receiver
      Specified by:
      getOutputProperties in interface ReceiverWithOutputProperties
      Returns:
      the serialization properties
    • write

      public void write(Item item) throws XPathException
      Abstract method to be supplied by subclasses: output one item in the sequence.
      Specified by:
      write in class SequenceWriter
      Parameters:
      item - the item to be written to the sequence
      Throws:
      XPathException - if any failure occurs while writing the item
    • close

      public void close() throws XPathException
      Description copied from interface: Receiver
      Notify the end of the event stream
      Specified by:
      close in interface Receiver
      Overrides:
      close in class SequenceWriter
      Throws:
      XPathException - if an error occurs