ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
StreamInterface.php
Go to the documentation of this file.
1<?php
2
3namespace Psr\Http\Message;
4
13{
28 public function __toString();
29
35 public function close();
36
44 public function detach();
45
51 public function getSize();
52
59 public function tell();
60
66 public function eof();
67
73 public function isSeekable();
74
87 public function seek($offset, $whence = SEEK_SET);
88
99 public function rewind();
100
106 public function isWritable();
107
115 public function write($string);
116
122 public function isReadable();
123
134 public function read($length);
135
143 public function getContents();
144
157 public function getMetadata($key = null);
158}
An exception for terminatinating execution or to throw for unit testing.
$key
Definition: croninfo.php:18
Describes a data stream.
close()
Closes the stream and any underlying resources.
detach()
Separates any underlying resources from the stream.
rewind()
Seek to the beginning of the stream.
eof()
Returns true if the stream is at the end of the stream.
__toString()
Reads all data from the stream into a string, from the beginning to end.
getContents()
Returns the remaining contents in a string.
isWritable()
Returns whether or not the stream is writable.
getSize()
Get the size of the stream if known.
seek($offset, $whence=SEEK_SET)
Seek to a position in the stream.
tell()
Returns the current position of the file read/write pointer.
write($string)
Write data to the stream.
getMetadata($key=null)
Get stream metadata as an associative array or retrieve a specific key.
read($length)
Read data from the stream.
isSeekable()
Returns whether or not the stream is seekable.
isReadable()
Returns whether or not the stream is readable.