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