Class LazyOpenStream
Lazily reads or writes to a file that is opened only after an IO operation
take place on the stream.
-
GuzzleHttp\Psr7\LazyOpenStream
implements
Psr\Http\Message\StreamInterface
uses
GuzzleHttp\Psr7\StreamDecoratorTrait
Methods summary
public
|
#
__construct( string $filename, string $mode )
Parameters
- $filename
- File to lazily open
- $mode
- fopen mode to use when opening the stream
|
protected
Psr\Http\Message\StreamInterface
|
#
createStream( )
Creates the underlying stream lazily when required.
Creates the underlying stream lazily when required.
Returns
|
Methods inherited from Psr\Http\Message\StreamInterface
__toString(),
close(),
detach(),
eof(),
getContents(),
getMetadata(),
getSize(),
isReadable(),
isSeekable(),
isWritable(),
read(),
rewind(),
seek(),
tell(),
write()
|
Methods used from GuzzleHttp\Psr7\StreamDecoratorTrait
__call(),
__get(),
__toString(),
close(),
detach(),
eof(),
getContents(),
getMetadata(),
getSize(),
isReadable(),
isSeekable(),
isWritable(),
read(),
rewind(),
seek(),
tell(),
write()
|