Next Previous Up Top Contents Index

5.11 The STREAMS module

<string-stream>

Open instantiable class

Summary

The class of streams over strings.

Superclasses

<sequence-stream>

Init-keywords

contents:
A general instance of <sequence>.

direction:
Specifies the direction of the stream. It must be one of #"input", #"output", or #"input-output"; Default value: #"input".

start:
An instance of <integer>. Only valid when direction: is #"input". Default value: 0.

end:
An instance of <integer>. This specifies the string position immediately after the portion of the string to stream over. Only valid when direction: is #"input". Default value: contents.size.

Library

io

Module

streams

Description

The class of streams over strings.

The contents: init-keyword is used as the input for an input stream, and as the initial storage for an output stream.

The start: init-keyword specifies the start position of the string to be streamed over.

The class supports the same init-keywords as <sequence-stream>.

The start: and end: init-keywords specify the portion of the string to create the stream over: start: is inclusive and end: is exclusive. The default is to stream over the entire string.

Example

make string-stream-class

See also

make string-stream-class, page 78

<sequence-stream>, page 91


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index