Stream decorator that can cache previously read bytes from a sequentially
read stream.
Cloneable
Instantiable
-
Implements
Psr\Http\Message\StreamInterface Stringable
Methods |
public
__call
(
$method
,
array
$args
) Allow decorators to implement custom methods
|
public
__construct
(
Psr\Http\Message\StreamInterface
$stream
,
?
Psr\Http\Message\StreamInterface
$target
=
NULL
) We will treat the buffer object as the body of the stream |
public
__get
(
$name
) Magic method used to create a new stream if streams are not added in
|
public __toString () : string |
public
close
() Close both the remote stream and buffer stream |
public detach () |
public eof () |
public getContents () |
public getMetadata ( $key = NULL ) |
public getSize () |
public isReadable () |
public isSeekable () |
public isWritable () |
public read ( $length ) |
public rewind () |
public seek ( $offset , $whence = 0 ) |
public tell () |
public write ( $string ) |
Methods |
protected
createStream
() Implement in subclasses to dynamically create streams when requested.
|
Properties |
private
$remoteStream
|
private
$skipReadBytes
|
Methods |
private cacheEntireStream () |