Esempio n. 1
0
 public function appendStream(StreamInterface $stream)
 {
     if (!$stream->canRead()) {
         throw new Exception\NotSupportedException('Stream does not support read.');
     }
     if (!$stream->canSeek()) {
         $this->canSeek = false;
     }
     $this->streams[] = $stream;
 }
Esempio n. 2
0
 /**
  * @return bool
  */
 public function canSeek()
 {
     return $this->stream->canSeek();
 }
Esempio n. 3
0
 /**
  * @return bool
  */
 public function canSeek()
 {
     $this->initializeStream();
     return $this->stream->canSeek();
 }