You are here

class NoSeekStream in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/NoSeekStream.php \GuzzleHttp\Psr7\NoSeekStream

Stream decorator that prevents a stream from being seeked

Hierarchy

Expanded class hierarchy of NoSeekStream

4 files declare their use of NoSeekStream
FunctionsTest.php in vendor/guzzlehttp/psr7/tests/FunctionsTest.php
LimitStreamTest.php in vendor/guzzlehttp/psr7/tests/LimitStreamTest.php
NoSeekStreamTest.php in vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php
StreamTest.php in vendor/guzzlehttp/psr7/tests/StreamTest.php

File

vendor/guzzlehttp/psr7/src/NoSeekStream.php, line 9

Namespace

GuzzleHttp\Psr7
View source
class NoSeekStream implements StreamInterface {
  use StreamDecoratorTrait;
  public function seek($offset, $whence = SEEK_SET) {
    throw new \RuntimeException('Cannot seek a NoSeekStream');
  }
  public function isSeekable() {
    return false;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NoSeekStream::isSeekable public function Returns whether or not the stream is seekable. Overrides StreamDecoratorTrait::isSeekable
NoSeekStream::seek public function Seek to a position in the stream. Overrides StreamDecoratorTrait::seek
StreamDecoratorTrait::close public function 1
StreamDecoratorTrait::createStream protected function Implement in subclasses to dynamically create streams when requested. 2
StreamDecoratorTrait::detach public function
StreamDecoratorTrait::eof public function 2
StreamDecoratorTrait::getContents public function
StreamDecoratorTrait::getMetadata public function
StreamDecoratorTrait::getSize public function 2
StreamDecoratorTrait::isReadable public function
StreamDecoratorTrait::isWritable public function 1
StreamDecoratorTrait::read public function 2
StreamDecoratorTrait::rewind public function 1
StreamDecoratorTrait::tell public function 1
StreamDecoratorTrait::write public function 2
StreamDecoratorTrait::__call public function Allow decorators to implement custom methods
StreamDecoratorTrait::__construct public function 7
StreamDecoratorTrait::__get public function Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
StreamDecoratorTrait::__toString public function