Go to the first, previous, next, last section, table of contents.


Streams

A stream is a Lisp object which is either a data sink (an output stream) or a data source (an input stream). In Jade all streams produce or consume sequences of 8-bit characters.

Streams are very flexible, functions using streams for their input and output do not need to know what type of stream it is. For example the Lisp reader (the read function) takes an input stream as its one argument, it then reads characters from this stream until it has parsed a whole object. This stream could be a file, a position in a buffer, a function or even a string; the read function can not tell the difference.

Function: streamp object
This function returns t if its argument is a stream.


Go to the first, previous, next, last section, table of contents.