ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
NoSeekStream.php
Go to the documentation of this file.
1
<?php
2
namespace
GuzzleHttp\Psr7
;
3
4
use
Psr\Http\Message\StreamInterface
;
5
9
class
NoSeekStream
implements
StreamInterface
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
}
GuzzleHttp\Psr7\NoSeekStream
Stream decorator that prevents a stream from being seeked.
Definition:
NoSeekStream.php:9
GuzzleHttp\Psr7\NoSeekStream\seek
seek($offset, $whence=SEEK_SET)
Seek to a position in the stream.
Definition:
NoSeekStream.php:13
GuzzleHttp\Psr7
Definition:
AppendStream.php:2
StreamInterface
StreamDecoratorTrait
GuzzleHttp\Psr7\NoSeekStream\isSeekable
isSeekable()
Returns whether or not the stream is seekable.
Definition:
NoSeekStream.php:18
Psr\Http\Message\StreamInterface
Describes a data stream.
Definition:
StreamInterface.php:12
libs
composer
vendor
guzzlehttp
psr7
src
NoSeekStream.php
Generated on Tue Jan 28 2025 19:01:05 for ILIAS by
1.8.13 (using
Doxyfile
)