66 public function eof();
87 public function seek($offset, $whence = SEEK_SET);
An exception for terminatinating execution or to throw for unit testing.
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.