PHP Classes

File: application/modules/extensions/aws/GuzzleHttp/Psr7/NoSeekStream.php

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   application/modules/extensions/aws/GuzzleHttp/Psr7/NoSeekStream.php   Download  
File: application/modules/extensions/aws/GuzzleHttp/Psr7/NoSeekStream.php
Role: Application script
Content type: text/plain
Description: Application script
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 8 years ago
Size: 424 bytes
 

Contents

Class file image Download
<?php
namespace GuzzleHttp\Psr7;

use
Psr\Http\Message\StreamInterface;

/**
 * Stream decorator that prevents a stream from being seeked
 */
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;
    }
}