We know that the stream will read from a file usingfile-stream functionality and that the stream element type will besimple-char. The following defines a method onstream-element-type to return the correct element type.
(defmethod stream-element-type ((stream unicode-ls-stream)) 'simple-char)stream-element-type
Generic Function
stream-element-type stream
common-lisp stream-element-type is implemented as a generic function. Depending on the stream, a method should be defined for this generic function that takes a stream as its argument and returns the element type of the stream.