|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (EntityBodyInterface $body) | |
| __toString () | |
| close () | |
| getContentEncoding () | |
| getContentType () | |
| getCustomData ($key) | |
| getMetaData ($key=null) | |
| getSize () | |
| getStream () | |
| getStreamType () | |
| getUri () | |
| getWrapper () | |
| getWrapperData () | |
| isConsumed () | |
| read ($length) | |
| readLine ($maxLength=null) | |
| rewind () | |
| seek ($offset, $whence=SEEK_SET) | |
| setCustomData ($key, $value) | |
| setRewindFunction ($callable) | |
| setStream ($stream, $size=0) | |
| write ($string) | |
Public Member Functions inherited from Guzzle\Http\AbstractEntityBodyDecorator | |
| __call ($method, array $args) | |
| compress ($filter='zlib.deflate') | |
| detachStream () | |
| feof () | |
| ftell () | |
| getContentLength () | |
| getContentMd5 ($rawOutput=false, $base64Encode=false) | |
| isLocal () | |
| isReadable () | |
| isRepeatable () | |
| isSeekable () | |
| isWritable () | |
| setSize ($size) | |
| uncompress ($filter='zlib.inflate') | |
Protected Attributes | |
| $remoteStream | |
| $skipReadBytes = 0 | |
Protected Attributes inherited from Guzzle\Http\AbstractEntityBodyDecorator | |
| $body | |
EntityBody decorator that can cache previously read bytes from a sequentially read tstream
Definition at line 10 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::__construct | ( | EntityBodyInterface | $body | ) |
We will treat the buffer object as the body of the entity body {
| EntityBodyInterface | $body | Entity body to decorate |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 28 of file CachingEntityBody.php.
References Guzzle\Http\AbstractEntityBodyDecorator\$body.
| Guzzle\Http\CachingEntityBody::__toString | ( | ) |
Will give the contents of the buffer followed by the exhausted remote stream.
Warning: Loads the entire stream into memory
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 41 of file CachingEntityBody.php.
References Guzzle\Http\AbstractEntityBodyDecorator\ftell(), Guzzle\Http\CachingEntityBody\isConsumed(), Guzzle\Http\CachingEntityBody\read(), Guzzle\Http\CachingEntityBody\rewind(), and Guzzle\Http\CachingEntityBody\seek().
| Guzzle\Http\CachingEntityBody::close | ( | ) |
Close both the remote stream and buffer stream
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 166 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getContentEncoding | ( | ) |
Get the Content-Encoding of the EntityBody
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 181 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getContentType | ( | ) |
Guess the Content-Type of a local stream
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 176 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getCustomData | ( | $key | ) |
Always retrieve custom data from the remote stream {Get custom data from the stream
| string | $key | Key to retrieve |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 220 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getMetaData | ( | $key = null | ) |
Get stream metadata
| string | $key | Specific metadata to retrieve |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 186 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getSize | ( | ) |
Get the size of the stream if able
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 56 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getStream | ( | ) |
Get the stream resource
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 191 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getStreamType | ( | ) |
Get a label describing the underlying implementation of the stream
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 206 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getUri | ( | ) |
Get the URI/filename associated with this stream
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 211 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getWrapper | ( | ) |
Get the stream wrapper type
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 196 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::getWrapperData | ( | ) |
Wrapper specific data attached to this stream.
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 201 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::isConsumed | ( | ) |
Check if the stream has been consumed
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 158 of file CachingEntityBody.php.
Referenced by Guzzle\Http\CachingEntityBody\__toString(), and Guzzle\Http\CachingEntityBody\readLine().
| Guzzle\Http\CachingEntityBody::read | ( | $length | ) |
Read data from the stream
| int | $length | Up to length number of bytes read. |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 100 of file CachingEntityBody.php.
Referenced by Guzzle\Http\CachingEntityBody\__toString(), and Guzzle\Http\CachingEntityBody\readLine().
| Guzzle\Http\CachingEntityBody::readLine | ( | $maxLength = null | ) |
{Read a line from the stream up to the maximum allowed buffer length
| int | $maxLength | Maximum buffer length |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 142 of file CachingEntityBody.php.
References Guzzle\Http\CachingEntityBody\isConsumed(), and Guzzle\Http\CachingEntityBody\read().
| Guzzle\Http\CachingEntityBody::rewind | ( | ) |
Rewind to the beginning of the stream
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 85 of file CachingEntityBody.php.
References Guzzle\Http\CachingEntityBody\seek().
Referenced by Guzzle\Http\CachingEntityBody\__toString().
| Guzzle\Http\CachingEntityBody::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
| ) |
{Seek to a position in the stream
| int | $offset | Stream offset |
| int | $whence | Where the offset is applied |
| RuntimeException | When seeking with SEEK_END or when seeking past the total size of the buffer stream |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 65 of file CachingEntityBody.php.
References Guzzle\Http\AbstractEntityBodyDecorator\ftell().
Referenced by Guzzle\Http\CachingEntityBody\__toString(), and Guzzle\Http\CachingEntityBody\rewind().
| Guzzle\Http\CachingEntityBody::setCustomData | ( | $key, | |
| $value | |||
| ) |
Always set custom data on the remote stream {Set custom data on the stream
| string | $key | Key to set |
| mixed | $value | Value to set |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 229 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::setRewindFunction | ( | $callable | ) |
Does not support custom rewind functions
| RuntimeException |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 95 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::setStream | ( | $stream, | |
$size = 0 |
|||
| ) |
Set the stream that is wrapped by the object
| resource | $stream | Stream resource to wrap |
| int | $size | Size of the stream in bytes. Only pass if the size cannot be obtained from the stream. |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 171 of file CachingEntityBody.php.
| Guzzle\Http\CachingEntityBody::write | ( | $string | ) |
Write data to the stream
| string | $string | The string that is to be written. |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 126 of file CachingEntityBody.php.
References Guzzle\Http\AbstractEntityBodyDecorator\ftell().
|
protected |
Remote stream used to actually pull data onto the buffer
Definition at line 16 of file CachingEntityBody.php.
|
protected |
The number of bytes to skip reading due to a write on the temporary buffer
Definition at line 22 of file CachingEntityBody.php.