A file stream object.

package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

Close an resource

closed() 

Flushes the output

flushed() : boolean

Returns

boolean

File is locked

locked(\Filicious\Stream\mode $operation) : bool

Parameters

Returns

bool

Opens file or URL

opened(\Filicious\Stream\StreamMode $mode) 

Parameters

$mode

Seeks to specific location in a stream

positionChanged(int $offset, int $whence) : mixed

Parameters

$offset

int

$whence

int

Returns

mixed

Read from stream

read(int $count, $data) : string

Parameters

$count

int

$data

Returns

string

Truncate stream

truncated(int $size) : boolean

Parameters

$size

int

Returns

boolean

Write to stream

written(string $data) : mixed

Parameters

$data

string

Returns

mixed