NextPrevUpTopContentsIndex

stream-element-type

Generic Function
Summary

Implements stream-element-type as a generic function.

Package

common-lisp

Signature

stream-element-type stream => type

Arguments

stream

A stream.

Values

type

A type specifier.

Description

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.

Methods must be implemented for all subclasses of buffered-stream. Typically for character streams, the implementation can return the array-element-type of the buffer.

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.

See also

buffered-stream
fundamental-binary-stream
fundamental-character-stream


LispWorks Reference Manual - 23 Jul 2004

NextPrevUpTopContentsIndex