ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Describes a data stream. More...
Public Member Functions | |
__construct ($stream) | |
close () | |
Closes the stream and any underlying resources. More... | |
detach () | |
Separates any underlying resources from the stream. More... | |
__toString () | |
Reads all data from the stream into a string, from the beginning to end. More... | |
seek ($offset, $whence=SEEK_SET) | |
Seek to a position in the stream. More... | |
isSeekable () | |
Returns whether or not the stream is seekable. More... | |
getMetadata ($key=null) | |
Get stream metadata as an associative array or retrieve a specific key. More... | |
getSize () | |
Get the size of the stream if known. More... | |
tell () | |
Returns the current position of the file read/write pointer. More... | |
eof () | |
Returns true if the stream is at the end of the stream. More... | |
rewind () | |
Seek to the beginning of the stream. More... | |
write ($string) | |
Write data to the stream. More... | |
isWritable () | |
Returns whether or not the stream is writable. More... | |
read ($length) | |
Read data from the stream. More... | |
isReadable () | |
Returns whether or not the stream is readable. More... | |
getContents () | |
Returns the remaining contents in a string. More... | |
Protected Attributes | |
$stream | |
Describes a data stream.
Typically, an instance will wrap a PHP stream; this interface provides a wrapper around the most common operations, including serialization of the entire stream to a string.
Definition at line 16 of file Stream.php.
ZipStream\Stream::__construct | ( | $stream | ) |
Definition at line 20 of file Stream.php.
References GuzzleHttp\Psr7\$stream.
ZipStream\Stream::__toString | ( | ) |
Reads all data from the stream into a string, from the beginning to end.
This method MUST attempt to seek to the beginning of the stream before reading data and read the stream until the end is reached.
Warning: This could attempt to load a large amount of data into memory.
This method MUST NOT raise an exception in order to conform with PHP's string casting operations.
Implements Psr\Http\Message\StreamInterface.
Definition at line 66 of file Stream.php.
ZipStream\Stream::close | ( | ) |
Closes the stream and any underlying resources.
Implements Psr\Http\Message\StreamInterface.
Definition at line 30 of file Stream.php.
ZipStream\Stream::detach | ( | ) |
Separates any underlying resources from the stream.
After the stream has been detached, the stream is in an unusable state.
Implements Psr\Http\Message\StreamInterface.
Definition at line 45 of file Stream.php.
References $result, and GuzzleHttp\Psr7\$stream.
ZipStream\Stream::eof | ( | ) |
Returns true if the stream is at the end of the stream.
Implements Psr\Http\Message\StreamInterface.
Definition at line 155 of file Stream.php.
ZipStream\Stream::getContents | ( | ) |
Returns the remaining contents in a string.
Implements Psr\Http\Message\StreamInterface.
Definition at line 242 of file Stream.php.
References $result.
ZipStream\Stream::getMetadata | ( | $key = null | ) |
Get stream metadata as an associative array or retrieve a specific key.
The keys returned are identical to the keys returned from PHP's stream_get_meta_data() function.
Implements Psr\Http\Message\StreamInterface.
Definition at line 118 of file Stream.php.
References $key, and $metadata.
ZipStream\Stream::getSize | ( | ) |
Get the size of the stream if known.
Implements Psr\Http\Message\StreamInterface.
Definition at line 129 of file Stream.php.
References Sabre\VObject\$stats.
ZipStream\Stream::isReadable | ( | ) |
Returns whether or not the stream is readable.
Implements Psr\Http\Message\StreamInterface.
Definition at line 230 of file Stream.php.
ZipStream\Stream::isSeekable | ( | ) |
Returns whether or not the stream is seekable.
Implements Psr\Http\Message\StreamInterface.
Definition at line 101 of file Stream.php.
ZipStream\Stream::isWritable | ( | ) |
Returns whether or not the stream is writable.
Implements Psr\Http\Message\StreamInterface.
Definition at line 198 of file Stream.php.
ZipStream\Stream::read | ( | $length | ) |
Read data from the stream.
int | $length | Read up to $length bytes from the object and return them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes. |
Implements Psr\Http\Message\StreamInterface.
Definition at line 213 of file Stream.php.
References $result.
ZipStream\Stream::rewind | ( | ) |
Seek to the beginning of the stream.
If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).
Implements Psr\Http\Message\StreamInterface.
Definition at line 170 of file Stream.php.
ZipStream\Stream::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
) |
Seek to a position in the stream.
Implements Psr\Http\Message\StreamInterface.
Definition at line 86 of file Stream.php.
ZipStream\Stream::tell | ( | ) |
Returns the current position of the file read/write pointer.
Implements Psr\Http\Message\StreamInterface.
Definition at line 141 of file Stream.php.
ZipStream\Stream::write | ( | $string | ) |
Write data to the stream.
string | $string | The string that is to be written. |
Implements Psr\Http\Message\StreamInterface.
Definition at line 182 of file Stream.php.
|
protected |
Definition at line 18 of file Stream.php.