36 public function __call($method, array $args)
38 return call_user_func_array(array($this->body, $method), $args);
41 public function close()
43 return $this->body->close();
48 $this->body->setRewindFunction($callable);
55 return $this->body->rewind();
58 public function compress($filter =
'zlib.deflate')
60 return $this->body->compress($filter);
63 public function uncompress($filter =
'zlib.inflate')
65 return $this->body->uncompress($filter);
75 return $this->body->getContentType();
78 public function getContentMd5($rawOutput =
false, $base64Encode =
false)
82 return $hash && $base64Encode ? base64_encode($hash) : $hash;
87 return $this->body->getContentEncoding();
92 return $this->body->getMetaData($key);
97 return $this->body->getStream();
100 public function setStream($stream, $size = 0)
102 $this->body->setStream($stream, $size);
109 $this->body->detachStream();
116 return $this->body->getWrapper();
121 return $this->body->getWrapperData();
126 return $this->body->getStreamType();
131 return $this->body->getUri();
136 return $this->body->getSize();
141 return $this->body->isReadable();
151 return $this->body->isWritable();
156 return $this->body->isConsumed();
163 public function feof()
170 return $this->body->isLocal();
175 return $this->body->isSeekable();
180 $this->body->setSize($size);
185 public function seek($offset, $whence = SEEK_SET)
187 return $this->body->seek($offset, $whence);
190 public function read($length)
192 return $this->body->read($length);
195 public function write($string)
197 return $this->body->write($string);
200 public function readLine($maxLength =
null)
202 return $this->body->readLine($maxLength);
205 public function ftell()
207 return $this->body->ftell();
212 return $this->body->getCustomData($key);
217 $this->body->setCustomData($key, $value);