ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
NoSeekStream.php
Go to the documentation of this file.
1 <?php
2 namespace GuzzleHttp\Psr7;
3 
5 
9 class NoSeekStream implements StreamInterface
10 {
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 }
Stream decorator that prevents a stream from being seeked.
Definition: NoSeekStream.php:9
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.