Next: Input stream methods, Previous: Gray Streams classes, Up: Gray Streams

#### 10.2.2 Methods common to all streams

These generic functions can be specialized on any generalized instance of fundamental-stream.

— Generic Function: cl:stream-element-type stream

> Return a type specifier for the kind of object returned by the `stream`. The class `fundamental-character-stream` provides a default method which returns `character`.

— Generic Function: cl:close stream &key abort

> Close the given `stream`. No more I/O may be performed, but inquiries may still be made. If `:abort` is true, an attempt is made to clean up the side effects of having created the stream.

— Generic Function: sb-gray:stream-file-position stream &optional position-spec

> Used by `file-position`. Returns or changes the current position within `stream`.