PHP Class Kraken\Stream\StreamSeeker

Inheritance: extends Kraken\Event\BaseEventEmitter, implements Kraken\Stream\StreamSeekerInterface
显示文件 Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$autoClose boolean
$closing boolean
$resource resource

Public Methods

Method Description
__construct ( resource $resource, boolean $autoClose = true )
__destruct ( )
close ( )
getMetadata ( )
getResource ( )
getResourceId ( )
getStreamType ( )
getWrapperType ( )
handleClose ( ) Handle the close of the stream object.
isOpen ( )
isSeekable ( )
rewind ( )
seek ( $offset, $whence = SEEK_SET )
tell ( )

Protected Methods

Method Description
throwAndEmitException ( Erro\Error | Exceptio\Exception $ex ) : null Emit error event and the throws it too.

Method Details

__construct() public method

public __construct ( resource $resource, boolean $autoClose = true )
$resource resource
$autoClose boolean

__destruct() public method

public __destruct ( )

close() public method

public close ( )

getMetadata() public method

public getMetadata ( )

getResource() public method

public getResource ( )

getResourceId() public method

public getResourceId ( )

getStreamType() public method

public getStreamType ( )

getWrapperType() public method

public getWrapperType ( )

handleClose() public method

Handle the close of the stream object.
public handleClose ( )

isOpen() public method

public isOpen ( )

isSeekable() public method

public isSeekable ( )

rewind() public method

public rewind ( )

seek() public method

public seek ( $offset, $whence = SEEK_SET )

tell() public method

public tell ( )

throwAndEmitException() protected method

Emit error event and the throws it too.
protected throwAndEmitException ( Erro\Error | Exceptio\Exception $ex ) : null
$ex Erro\Error | Exceptio\Exception
return null

Property Details

$autoClose protected_oe property

protected bool $autoClose
return boolean

$closing protected_oe property

protected bool $closing
return boolean

$resource protected_oe property

protected resource $resource
return resource