ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
StreamInterface.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\Http\Message;
4 
12 interface StreamInterface
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 }
rewind()
Seek to the beginning of the stream.
read($length)
Read data from the stream.
write($string)
Write data to the stream.
close()
Closes the stream and any underlying resources.
getContents()
Returns the remaining contents in a string.
detach()
Separates any underlying resources from the stream.
seek($offset, $whence=SEEK_SET)
Seek to a position in the stream.
isWritable()
Returns whether or not the stream is writable.
getMetadata($key=null)
Get stream metadata as an associative array or retrieve a specific key.
getSize()
Get the size of the stream if known.
__toString()
Reads all data from the stream into a string, from the beginning to end.
eof()
Returns true if the stream is at the end of the stream.
isReadable()
Returns whether or not the stream is readable.
$key
Definition: croninfo.php:18
isSeekable()
Returns whether or not the stream is seekable.
tell()
Returns the current position of the file read/write pointer.
Describes a data stream.