StreamFactoryInterface

Known implementers

Sunrise\Stream\StreamFactory

Methods Summary
public
# createStream( string $content = '' )
Create a new stream from a string. The stream SHOULD be created with a temporary resource.
public
# createStreamFromFile( string $filename , string $mode = 'r' )
Create a stream from an existing file. The file MUST be opened using the given mode, which may be any mode supported by the `fopen` function. The `$filename` MAY be any string supported by `fopen()`.
public
# createStreamFromResource( resource $resource )
Create a new stream from an existing resource. The stream MUST be readable and may be writable.