Class StandardMessageHandler

  • All Implemented Interfaces:
    java.util.function.Consumer<Message>

    public class StandardMessageHandler
    extends java.lang.Object
    implements java.util.function.Consumer<Message>
    This is the default implementation of the new Saxon 11 interface for user-defined handling of xsl:message and xsl:assert output.
    • Constructor Detail

      • StandardMessageHandler

        public StandardMessageHandler​(Configuration config)
    • Method Detail

      • setUnicodeWriter

        public void setUnicodeWriter​(UnicodeWriter writer)
        Set the destination to which serialized messages will be written
        Parameters:
        writer - the destination for serialized messages
      • getUnicodeWriter

        public UnicodeWriter getUnicodeWriter()
        Get the destination to which serialized messages will be written
        Returns:
        the destination for serialized messages
      • accept

        public void accept​(Message message)
        Specified by:
        accept in interface java.util.function.Consumer<Message>