‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Http\StreamFactory Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\StreamFactory:

Public Member Functions

 createStream (string $content='')
 createStreamFromFile (string $filename, string $mode='r')
 createStreamFromResource ($resource)

Detailed Description

Note that this is not public API, use PSR-17 interfaces instead.

Definition at line 26 of file StreamFactory.php.

Member Function Documentation

◆ createStream()

TYPO3\CMS\Core\Http\StreamFactory::createStream ( string  $content = '')

Create a new stream from a string.

string$content‪String content with which to populate the stream.

Definition at line 33 of file StreamFactory.php.

◆ createStreamFromFile()

TYPO3\CMS\Core\Http\StreamFactory::createStreamFromFile ( string  $filename,
string  $mode = 'r' 

Create a stream from an existing file.

The $filename MAY be any string supported by fopen().

string$filename‪Filename or stream URI to use as basis of stream.
string$mode‪Mode with which to open the underlying filename/stream.

Definition at line 52 of file StreamFactory.php.

◆ createStreamFromResource()

TYPO3\CMS\Core\Http\StreamFactory::createStreamFromResource (   $resource)

Create a new stream from an existing resource.

The stream MUST be readable and may be writable.

resource$resource‪PHP resource to use as basis of stream.

Definition at line 74 of file StreamFactory.php.