Package net.sf.saxon.lib
Class StandardMessageHandler
- java.lang.Object
-
- net.sf.saxon.lib.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 ofxsl:message
andxsl:assert
output.
-
-
Constructor Summary
Constructors Constructor Description StandardMessageHandler(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Message message)
SerializationProperties
getSerializationProperties()
Get the serialization properties to be used.UnicodeWriter
getUnicodeWriter()
Get the destination to which serialized messages will be writtenvoid
setUnicodeWriter(UnicodeWriter writer)
Set the destination to which serialized messages will be written
-
-
-
Constructor Detail
-
StandardMessageHandler
public StandardMessageHandler(Configuration config)
-
-
Method Detail
-
getSerializationProperties
public SerializationProperties getSerializationProperties()
Get the serialization properties to be used. This is a public method so that it can be overridden in a user-written subclass.- Returns:
- the serialization properties. By default the properties returned are method="yes", indent="yes", omit-xml-declaration="yes".
-
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
-
-