ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
NoSeekStream.php
Go to the documentation of this file.
1<?php
2namespace GuzzleHttp\Psr7;
3
5
10{
11 use StreamDecoratorTrait;
12
13 public function seek($offset, $whence = SEEK_SET)
14 {
15 throw new \RuntimeException('Cannot seek a NoSeekStream');
16 }
17
18 public function isSeekable()
19 {
20 return false;
21 }
22}
An exception for terminatinating execution or to throw for unit testing.
Stream decorator that prevents a stream from being seeked.
seek($offset, $whence=SEEK_SET)
Seek to a position in the stream.
isSeekable()
Returns whether or not the stream is seekable.
Describes a data stream.