PHP Class Zend\Diactoros\RelativeStream

Wrapper for default Stream class, representing subpart (starting from given offset) of initial stream. It can be used to avoid copying full stream, conserving memory.
Inheritance: implements Psr\Http\Message\StreamInterface
显示文件 Open project: zendframework/zend-diactoros Class Usage Examples

Public Methods

Method Description
__construct ( Psr\Http\Message\StreamInterface $decoratedStream, integer $offset ) Class constructor
__toString ( )
close ( )
detach ( )
eof ( )
getContents ( )
getMetadata ( $key = null )
getSize ( )
isReadable ( )
isSeekable ( )
isWritable ( )
read ( $length )
rewind ( )
seek ( $offset, $whence = SEEK_SET )
tell ( )
write ( $string )

Method Details

__construct() public method

Class constructor
public __construct ( Psr\Http\Message\StreamInterface $decoratedStream, integer $offset )
$decoratedStream Psr\Http\Message\StreamInterface
$offset integer

__toString() public method

public __toString ( )

close() public method

public close ( )

detach() public method

public detach ( )

eof() public method

public eof ( )

getContents() public method

public getContents ( )

getMetadata() public method

public getMetadata ( $key = null )

getSize() public method

public getSize ( )

isReadable() public method

public isReadable ( )

isSeekable() public method

public isSeekable ( )

isWritable() public method

public isWritable ( )

read() public method

public read ( $length )

rewind() public method

public rewind ( )

seek() public method

public seek ( $offset, $whence = SEEK_SET )

tell() public method

public tell ( )

write() public method

public write ( $string )