Lines Matching refs:stream
8 * @property StreamInterface stream
13 * @param StreamInterface $stream Stream to decorate
15 public function __construct(StreamInterface $stream)
17 $this->stream = $stream;
21 * Magic method used to create a new stream if streams are not added in
26 if ($name == 'stream') {
27 $this->stream = $this->createStream();
28 return $this->stream;
62 $result = call_user_func_array(array($this->stream, $method), $args);
65 return $result === $this->stream ? $this : $result;
70 $this->stream->close();
75 return $this->stream->getMetadata($key);
80 return $this->stream->detach();
83 public function attach($stream)
90 return $this->stream->getSize();
95 return $this->stream->eof();
100 return $this->stream->tell();
105 return $this->stream->isReadable();
110 return $this->stream->isWritable();
115 return $this->stream->isSeekable();
120 return $this->stream->seek($offset, $whence);
125 return $this->stream->read($length);
130 return $this->stream->write($string);