An observable file stream object.
Methods
Add an observer to the stream.
addObserver(\Filicious\Stream\StreamObserver $observer)
Remove an observer from the stream.
removeObserver(\Filicious\Stream\StreamObserver $observer)
Notify observers that the stream is closed.
notifyClosed()
Notify observers that the stream is flushed.
notifyFlushed()
Notify observers that the stream is locked.
notifyLocked(\Filicious\Stream\mode $operation)
Notify observers that the stream is opened.
notifyOpened(\Filicious\Stream\StreamMode $mode)
Notify observers that the stream position changed.
notifyPositionChanged($offset, $whence)
Parameters
$offset
$whence
Notify observers that the stream is read.
notifyRead($count, $data)
Notify observers that the stream is truncated.
notifyTruncated($size)
Notify observers that the stream is written.
notifyWritten($data)
Properties