The function
stream-element-type
is implemented as a generic function. Depending on the stream, a method should be defined for this generic function that returns the element type of the stream.
For the class
fundamental-character-stream
a default method is provided which returns
CHARACTER
. A method should be defined for stream classes based on the
fundamental-binary-stream
class.