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
Afficher le fichier Open project: zendframework/zend-diactoros Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

close() public méthode

public close ( )

detach() public méthode

public detach ( )

eof() public méthode

public eof ( )

getContents() public méthode

public getContents ( )

getMetadata() public méthode

public getMetadata ( $key = null )

getSize() public méthode

public getSize ( )

isReadable() public méthode

public isReadable ( )

isSeekable() public méthode

public isSeekable ( )

isWritable() public méthode

public isWritable ( )

read() public méthode

public read ( $length )

rewind() public méthode

public rewind ( )

seek() public méthode

public seek ( $offset, $whence = SEEK_SET )

tell() public méthode

public tell ( )

write() public méthode

public write ( $string )