Eclipse defined
Generic Function STREAM-READ-SEQUENCE, STREAM-WRITE-SEQUENCE

Syntax:

stream-read-sequence input-stream sequence &key start end => position

stream-write-sequence output-stream sequence &key start end => sequence

Arguments and Values:

input-stream---an input stream of element-type.

output-stream---an output stream of element-type.

sequence---a a sequence of element-type.

start, end---a bounding index designators of sequence. The defaults for start and end are 0 and NIL, respectively.

position---a an integer greater than or equal to zero, and less than or equal to the length of the sequence.

Description:

Stream-read-sequence is used by the ANSI defined function read-sequence and returns the index of the first element of sequence that was not updated, which might be less than end because the end of file was reached.

Stream-write-sequence is used by the ANSI defined function write-sequence and returns sequence.

Methods:
Primary Method stream-read-sequence (stream encapsulating-stream) (sequence sequence) &key start end
Primary Method stream-read-sequence (stream encapsulating-stream) (sequence sequence) &key start end
Calls the same generic-function on the encapsulating-stream-stream of stream.

Primary Method stream-read-sequence (stream fundamental-character-input-stream) (sequence vector) &key start end
Primary Method stream-read-sequence (stream fundamental-character-input-stream) (sequence list) &key start end
Primary Method stream-read-sequence (stream fundamental-binary-input-stream) (sequence vector) &key start end
Primary Method stream-read-sequence (stream fundamental-binary-input-stream) (sequence list) &key start end
Iterates through sequence, repeatedly calling either stream-read-char or stream-read-byte, as appropriate.

Primary Method stream-write-sequence (stream fundamental-character-output-stream) (sequence vector) &key start end
Primary Method stream-write-sequence (stream fundamental-character-output-stream) (sequence list) &key start end
Primary Method stream-write-sequence (stream fundamental-binary-output-stream) (sequence vector) &key start end
Primary Method stream-write-sequence (stream fundamental-binary-output-stream) (sequence list) &key start end
Iterates through sequence, repeatedly calling either stream-write-char or stream-write-byte, as appropriate.

Primary Method stream-read-sequence (stream input-stream) (sequence sequence) &key start end
Primary Method stream-read-sequence (stream output-stream) (sequence sequence) &key start end
Signals type-error. These provide the correct ANSI defined behavior when read-sequence or write-sequence is given an input-stream or output-stream that has a different element-type than sequence. It is up to the programmer to provide applicable overriding methods for correctly matching arguments.

Side Effects: None.

Affected By: None.

Exceptional Situations: None.

See Also:

"Extensions to Common Lisp", CLIM Stream Classes, Eclipse Stream Classes, stream-read-char, stream-read-byte, stream-write-char, stream-write-byte.

Notes: None.


[Previous] [Next] [Up] [Documentation Contents] [Eclipse Home Page]