OsPipeStream
A pipe stream is a kind of bufferred process stream that has a communication channel with the process via an operating system pipe. A pipe is an interprocess communication channel of fixed size that is implemented by various operating systems.
All instances of pipe streams also have smalltalk 'buffers' (usually <OsPipeStreamBuffer>) that allow for efficient reading and writing.
Class Methods
new
Answer a new pipe stream
Answers:
<OsPipeStream>
on:
Answer a new pipe stream on pipe descriptor with the default buffer
size for the concrete subclass
Arguments:
aPipeDescriptor - <Integer>
Answers:
<OsPipeStream>
on:withBufferSize:
Answer a new pipe stream on pipe descriptor with the defined
buffer size
Arguments:
aPipeDescriptor - <Integer>
aBufferSize - <Integer>
Answers:
<OsPipeStream>
withBufferSize:
Answer a new pipe stream with the defined
buffer size
Arguments:
aBufferSize - <Integer> or nil for default
Answers:
<OsPipeStream>
Instance Methods
close
Close the pipe.
Assume the pipe is closed if the descriptor is nil
The pipeDescriptor will be nil after the call (via prim)
isAccessible
Answer true if the pipe descriptor is valid and accessible
Answers:
<Boolean>
isBytes:
If true, adjust the buffers to store bytes.
If false, adjust the buffers to store chars.
Inform the @stream
Arguments:
aBoolean - <Boolean>
isClosed
A pipe stream is considered closed if the associated descriptor is nil
Answers:
<Boolean>
Last modified date: 02/23/2021