Package: closure-html

Function make-character-stream-sink

Lambda List

make-character-stream-sink (stream &rest initargs &key encoding &allow-other-keys)

Return Value

a HAX handler


Returns a sink writing to a character stream.

This function creates a serialization sink. Sinks are HAX handlers that write events in their normal HTML syntax.

This particular kind of sink writen the HTML document to a stream of element-type character. The characters written are not encoded into an external-format. Make sure that the stream's external format agrees with the encoding declared by the document, if any.

Supported only on Lisps with Unicode support. On Lisps without Unicode characters, try make-character-stream-sink/utf8 as an alternative that has different encoding behaviour, but still uses character streams.


See also