All Manuals > LispWorks User Guide and Reference Manual > 33 The COMMON-LISP Package

NextPrevUpTopContentsIndex

input-stream-p

Generic Function
Summary

A generic function that determines if an object is an input stream.

Package

common-lisp

Signature

input-stream-p stream => result

Arguments

stream

A stream.

Values

result

A generalized boolean.

Description

The predicate input-stream-p is implemented as a generic function. The default method returns t if stream is an input stream. If the user wants to implement a stream with no inherent directionality (and thus does not include fundamental-input-stream or fundamental-output-stream) but for which the directionality depends on the instance, then a method should be provided for input-stream-p.

Examples

There is an example in Stream directionality.

See also

fundamental-input-stream
output-stream-p


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex