[LISPWORKS][Common Lisp HyperSpec (TM)] [Previous][Up][Next]

21.1.1 Introduction to Streams

A stream is an object that can be used with an input or output function to identify an appropriate source or sink of characters or bytes for that operation. A character stream is a source or sink of characters. A binary stream is a source or sink of bytes.

Some operations may be performed on any kind of stream; the next figure provides a list of standardized operations that are potentially useful with any kind of stream.

close                 stream-element-type  
input-stream-p        streamp              
interactive-stream-p  with-open-stream     

Figure 21-1. Some General-Purpose Stream Operations

Other operations are only meaningful on certain stream types. For example, read-char is only defined for character streams and read-byte is only defined for binary streams. Abstract Classifications of Streams Abstract Classifications of Streams Other Subclasses of Stream

[Starting Points][Contents][Index][Symbols][Glossary][Issues]
Copyright 1996-2005, LispWorks Ltd. All rights reserved.