ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Filesystem\Provider\FileStreamReadAccess Interface Reference

Interface FileStreamReadAccess This interface describes all readonly streaming filesystem operations. More...

+ Inheritance diagram for ILIAS\Filesystem\Provider\FileStreamReadAccess:
+ Collaboration diagram for ILIAS\Filesystem\Provider\FileStreamReadAccess:

Public Member Functions

 readStream (string $path)
 Opens a readable stream of the file. More...
 

Detailed Description

Interface FileStreamReadAccess This interface describes all readonly streaming filesystem operations.

Author
Nicolas Schäfli ns@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Since
5.3
Version
1.0
See also
FileStreamAccess

Definition at line 18 of file FileStreamReadAccess.php.

Member Function Documentation

◆ readStream()

ILIAS\Filesystem\Provider\FileStreamReadAccess::readStream ( string  $path)

Opens a readable stream of the file.

Please make sure to close the stream after the work is done with Stream::close()

Parameters
string$pathThe path to the file which should be used to open the new stream.
Returns
FileStream The newly created file stream.
Exceptions
FileNotFoundExceptionIf the file could not be found.
IOExceptionIf the stream could not be opened.
Since
5.3
Version
1.0
See also
FileStream::close()

Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess.


The documentation for this interface was generated from the following file: