D.1 Stream Classes

The following classes must be used as superclasses of user-defined stream classes. They are not intended to be directly instantiated; they just provide places to hang default methods. [annotate]

fundamental-stream   [Class]
streamp  object [Generic Function]
          

Returns true if object is a member of the class fundamental-stream. It may return true for other objects that are not members of the fundamental-stream class, but claim to serve as streams. (It is not sufficient to implement streamp as (typep object 'fundamental-stream), because implementations may have additional ways of defining streams.) [annotate]

[annotate]

fundamental-input-stream   [Class]
input-stream-p  object [Generic Function]
          

Returns true when called on any object that is a member of the class fundamental-input-stream. It may return true for other objects that are not members of the fundamental-input-stream class, but claim to serve as input streams. [annotate]

[annotate]

Note: Unfortunately it's not 100% compatible with Gray Streams, which doesn't mandate input-stream-p and output-stream-p being generic functions. [edit]-- Daniel Kochmanski 2016-05-24 13:14Z
 

fundamental-output-stream   [Class]
output-stream-p  object [Generic Function]
          

Returns true when called on any object that is a member of the class fundamental-output-stream. It may return true for other objects that are not members of the fundamental-output-stream class, but claim to serve as output streams. [annotate]

Bidirectional streams can be formed by including both fundamental-input-stream and fundamental-output-stream. [annotate]

[annotate]

Note: Unfortunately it's not 100% compatible with Gray Streams, which doesn't mandate input-stream-p and output-stream-p being generic functions. [edit]-- Daniel Kochmanski 2016-05-24 13:14Z
 

fundamental-character-stream   [Class]
fundamental-binary-stream   [Class]
fundamental-character-input-stream   [Class]
fundamental-character-output-stream   [Class]
fundamental-binary-input-stream   [Class]
fundamental-binary-output-stream   [Class]