Decorator used to return only a subset of a 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
,
$limit
=
-1
,
$offset
=
0
) |
public
__get
(
$name
) Magic method used to create a new stream if streams are not added in
|
public __toString () : string |
public close () |
public detach () |
public eof () |
public getContents () |
public getMetadata ( $key = NULL ) |
public
getSize
() Returns the size of the limited subset of data |
public isReadable () |
public isSeekable () |
public isWritable () |
public read ( $length ) |
public rewind () |
public
seek
(
$offset
,
$whence
=
0
) Allow for a bounded seek on the read limited stream |
public
setLimit
(
$limit
) Set the limit of bytes that the decorator allows to be read from the |
public
setOffset
(
$offset
) Set the offset to start limiting from
|
public
tell
() Give a relative tell() |
public write ( $string ) |
Methods |
protected
createStream
() Implement in subclasses to dynamically create streams when requested.
|
Properties |
private
$limit
|
private
$offset
|