All Manuals > LispWorks User Guide and Reference Manual > 20 User Defined Streams > 20.2 An illustrative example of user defined streams

NextPrevUpTopContentsIndex

20.2.2 Recognizing the stream element type

We know that the stream will read from a file using file-stream functionality and that the stream element type will be simple-char. The following defines a method on stream-element-type to return the correct element type.

(defmethod stream-element-type ((stream unicode-ls-stream))
  'simple-char)

LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex