Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($stream, $size=null) | |
__destruct () | |
__toString () | |
close () | |
detachStream () | |
feof () | |
ftell () | |
getCustomData ($key) | |
getMetaData ($key=null) | |
getSize () | |
getStream () | |
getStreamType () | |
getUri () | |
getWrapper () | |
getWrapperData () | |
isConsumed () | |
isLocal () | |
isReadable () | |
isRepeatable () | |
isSeekable () | |
isWritable () | |
read ($length) | |
readLine ($maxLength=null) | |
rewind () | |
seek ($offset, $whence=SEEK_SET) | |
setCustomData ($key, $value) | |
setSize ($size) | |
setStream ($stream, $size=null) | |
write ($string) | |
Static Public Member Functions | |
static | getHash (StreamInterface $stream, $algo, $rawOutput=false) |
Data Fields | |
const | IS_LOCAL = 'is_local' |
const | IS_READABLE = 'is_readable' |
const | IS_WRITABLE = 'is_writable' |
const | SEEKABLE = 'seekable' |
const | STREAM_TYPE = 'stream_type' |
const | WRAPPER_TYPE = 'wrapper_type' |
Protected Member Functions | |
rebuildCache () | |
Protected Attributes | |
$cache = array() | |
$customData = array() | |
$size | |
$stream | |
Static Protected Attributes | |
static | $readWriteHash |
PHP stream implementation
Definition at line 10 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Guzzle\Stream\Stream::__construct | ( | $stream, | |
$size = null |
|||
) |
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. |
InvalidArgumentException | if the stream is not a stream resource |
Definition at line 63 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\$size, Guzzle\Stream\Stream\$stream, and Guzzle\Stream\Stream\setStream().
Guzzle\Stream\Stream::__destruct | ( | ) |
Closes the stream when the helper is destructed
Definition at line 71 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\close().
Guzzle\Stream\Stream::__toString | ( | ) |
Convert the stream to a string if the stream is readable and the stream is seekable.
Implements Guzzle\Stream\StreamInterface.
Definition at line 76 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\ftell(), Guzzle\Stream\Stream\isConsumed(), Guzzle\Stream\Stream\isReadable(), Guzzle\Stream\Stream\isSeekable(), and Guzzle\Stream\Stream\seek().
Guzzle\Stream\Stream::close | ( | ) |
Close the underlying stream
Implements Guzzle\Stream\StreamInterface.
Definition at line 89 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\IS_READABLE, and Guzzle\Stream\Stream\IS_WRITABLE.
Referenced by Guzzle\Stream\Stream\__destruct().
Guzzle\Stream\Stream::detachStream | ( | ) |
Detach the current stream resource
Implements Guzzle\Stream\StreamInterface.
Definition at line 150 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Guzzle\Stream\Stream::feof | ( | ) |
Alias of isConsumed
Implements Guzzle\Stream\StreamInterface.
Definition at line 220 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\isConsumed().
Referenced by Guzzle\Stream\Stream\isConsumed().
Guzzle\Stream\Stream::ftell | ( | ) |
Returns the current position of the file read/write pointer
Implements Guzzle\Stream\StreamInterface.
Definition at line 260 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\__toString(), and Guzzle\Stream\Stream\getSize().
Guzzle\Stream\Stream::getCustomData | ( | $key | ) |
Get custom data from the stream
string | $key | Key to retrieve |
Implements Guzzle\Stream\StreamInterface.
Definition at line 286 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
|
static |
Calculate a hash of a Stream
StreamInterface | $stream | Stream to calculate the hash for |
string | $algo | Hash algorithm (e.g. md5, crc32, etc) |
bool | $rawOutput | Whether or not to use raw output |
Definition at line 107 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\$stream.
Referenced by Guzzle\Http\AbstractEntityBodyDecorator\getContentMd5().
Guzzle\Stream\Stream::getMetaData | ( | $key = null | ) |
Get stream metadata
string | $key | Specific metadata to retrieve |
Implements Guzzle\Stream\StreamInterface.
Definition at line 125 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\getWrapperData().
Guzzle\Stream\Stream::getSize | ( | ) |
Get the size of the stream if able
Implements Guzzle\Stream\StreamInterface.
Definition at line 177 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\$size, Guzzle\Stream\Stream\ftell(), and Guzzle\Stream\Stream\seek().
Referenced by Guzzle\Http\EntityBody\getContentLength().
Guzzle\Stream\Stream::getStream | ( | ) |
Get the stream resource
Implements Guzzle\Stream\StreamInterface.
Definition at line 132 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\$stream.
Referenced by Guzzle\Stream\Stream\readLine().
Guzzle\Stream\Stream::getStreamType | ( | ) |
Get a label describing the underlying implementation of the stream
Implements Guzzle\Stream\StreamInterface.
Definition at line 167 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\STREAM_TYPE.
Guzzle\Stream\Stream::getUri | ( | ) |
Get the URI/filename associated with this stream
Implements Guzzle\Stream\StreamInterface.
Definition at line 172 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Http\EntityBody\getContentType().
Guzzle\Stream\Stream::getWrapper | ( | ) |
Get the stream wrapper type
Implements Guzzle\Stream\StreamInterface.
Definition at line 157 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\WRAPPER_TYPE.
Guzzle\Stream\Stream::getWrapperData | ( | ) |
Wrapper specific data attached to this stream.
Implements Guzzle\Stream\StreamInterface.
Definition at line 162 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\getMetaData().
Guzzle\Stream\Stream::isConsumed | ( | ) |
Check if the stream has been consumed
Implements Guzzle\Stream\StreamInterface.
Definition at line 215 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\feof().
Referenced by Guzzle\Stream\Stream\__toString(), Guzzle\Stream\Stream\feof(), Guzzle\Http\EntityBody\handleCompression(), and Guzzle\Http\EntityBody\uncompress().
Guzzle\Stream\Stream::isLocal | ( | ) |
Check if the stream is a local stream vs a remote stream
Implements Guzzle\Stream\StreamInterface.
Definition at line 225 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\IS_LOCAL.
Guzzle\Stream\Stream::isReadable | ( | ) |
Check if the stream is readable
Implements Guzzle\Stream\StreamInterface.
Definition at line 200 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\IS_READABLE.
Referenced by Guzzle\Stream\Stream\__toString(), Guzzle\Http\EntityBody\handleCompression(), and Guzzle\Http\EntityBody\uncompress().
Guzzle\Stream\Stream::isRepeatable | ( | ) |
Check if the stream is repeatable
Implements Guzzle\Stream\StreamInterface.
Definition at line 205 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\IS_READABLE, and Guzzle\Stream\Stream\SEEKABLE.
Guzzle\Stream\Stream::isSeekable | ( | ) |
Check if the string is repeatable
Implements Guzzle\Stream\StreamInterface.
Definition at line 230 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\SEEKABLE.
Referenced by Guzzle\Stream\Stream\__toString(), Guzzle\Http\EntityBody\handleCompression(), and Guzzle\Http\EntityBody\uncompress().
Guzzle\Stream\Stream::isWritable | ( | ) |
Check if the stream is writable
Implements Guzzle\Stream\StreamInterface.
Definition at line 210 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\IS_WRITABLE.
Guzzle\Stream\Stream::read | ( | $length | ) |
Read data from the stream
int | $length | Up to length number of bytes read. |
Implements Guzzle\Stream\StreamInterface.
Definition at line 247 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Guzzle\Stream\Stream::readLine | ( | $maxLength = null | ) |
Read a line from the stream up to the maximum allowed buffer length
int | $maxLength | Maximum buffer length |
Implements Guzzle\Stream\StreamInterface.
Definition at line 270 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\getStream().
|
protected |
Reprocess stream metadata
Definition at line 294 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\IS_LOCAL, Guzzle\Stream\Stream\IS_READABLE, and Guzzle\Stream\Stream\IS_WRITABLE.
Referenced by Guzzle\Http\EntityBody\handleCompression(), and Guzzle\Stream\Stream\setStream().
Guzzle\Stream\Stream::rewind | ( | ) |
Rewind to the beginning of the stream
Implements Guzzle\Stream\StreamInterface.
Reimplemented in Guzzle\Http\EntityBody.
Definition at line 265 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\seek().
Guzzle\Stream\Stream::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
) |
Seek to a position in the stream
int | $offset | Stream offset |
int | $whence | Where the offset is applied |
Implements Guzzle\Stream\StreamInterface.
Definition at line 242 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\SEEKABLE.
Referenced by Guzzle\Stream\Stream\__toString(), Guzzle\Stream\Stream\getSize(), Guzzle\Http\EntityBody\handleCompression(), and Guzzle\Stream\Stream\rewind().
Guzzle\Stream\Stream::setCustomData | ( | $key, | |
$value | |||
) |
Set custom data on the stream
string | $key | Key to set |
mixed | $value | Value to set |
Implements Guzzle\Stream\StreamInterface.
Definition at line 279 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Guzzle\Stream\Stream::setSize | ( | $size | ) |
Specify the size of the stream in bytes
int | $size | Size of the stream contents in bytes |
Implements Guzzle\Stream\StreamInterface.
Definition at line 235 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\$size.
Guzzle\Stream\Stream::setStream | ( | $stream, | |
$size = null |
|||
) |
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. |
Implements Guzzle\Stream\StreamInterface.
Definition at line 137 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
References Guzzle\Stream\Stream\$size, Guzzle\Stream\Stream\$stream, and Guzzle\Stream\Stream\rebuildCache().
Referenced by Guzzle\Stream\Stream\__construct().
Guzzle\Stream\Stream::write | ( | $string | ) |
Write data to the stream
string | $string | The string that is to be written. |
Implements Guzzle\Stream\StreamInterface.
Definition at line 252 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
|
protected |
Stream cached data
Definition at line 35 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
|
protected |
Custom stream data
Definition at line 41 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
|
staticprotected |
Definition at line 44 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
|
protected |
Size of the stream contents in bytes
Definition at line 29 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\__construct(), Guzzle\Http\EntityBody\factory(), Guzzle\Stream\Stream\getSize(), Guzzle\Stream\Stream\setSize(), and Guzzle\Stream\Stream\setStream().
|
protected |
Stream resource
Definition at line 23 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\__construct(), Guzzle\Http\EntityBody\fromString(), Guzzle\Stream\Stream\getHash(), Guzzle\Stream\Stream\getStream(), and Guzzle\Stream\Stream\setStream().
const Guzzle\Stream\Stream::IS_LOCAL = 'is_local' |
Definition at line 14 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\isLocal(), and Guzzle\Stream\Stream\rebuildCache().
const Guzzle\Stream\Stream::IS_READABLE = 'is_readable' |
Definition at line 15 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\close(), Guzzle\Stream\Stream\isReadable(), Guzzle\Stream\Stream\isRepeatable(), and Guzzle\Stream\Stream\rebuildCache().
const Guzzle\Stream\Stream::IS_WRITABLE = 'is_writable' |
Definition at line 16 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\close(), Guzzle\Stream\Stream\isWritable(), and Guzzle\Stream\Stream\rebuildCache().
const Guzzle\Stream\Stream::SEEKABLE = 'seekable' |
Definition at line 17 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\isRepeatable(), Guzzle\Stream\Stream\isSeekable(), and Guzzle\Stream\Stream\seek().
const Guzzle\Stream\Stream::STREAM_TYPE = 'stream_type' |
Definition at line 12 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\getStreamType().
const Guzzle\Stream\Stream::WRAPPER_TYPE = 'wrapper_type' |
Definition at line 13 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php.
Referenced by Guzzle\Stream\Stream\getWrapper().