ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Filesystem\Provider\FileStreamReadAccess Interface Reference
+ 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

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.
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: