|
$_file
File of the stream |
|
$_handle
Stream resource |
|
$_mode
Mode with which the stream being opened |
|
__construct (string|Sgss_File $file, [string|null $mode = null])
The constructor |
|
__destruct ()
The destructor |
boolean |
close ()
Destructs the stream resource |
Sgss_File_Writer |
getWriter ()
Creates and returns the writer of this stream |
int |
put (string $bytes)
Puts the specified bytes at the end of this stream |
int |
size ()
Returns the size of the stream in byte |
File of the stream
protected Sgss_File $_file
Stream resource
protected resource $_handle
Mode with which the stream being opened
protected string $_mode
The constructor
string|Sgss_File $file
File of the stream
string|null $mode
Mode to open the file with
When any error occurred while constructing the stream resource
public __construct (string|Sgss_File $file, [string|null $mode = null])
The destructor
public __destruct ()
Destructs the stream resource
Destructs the stream resource
public boolean close ()
Creates and returns the writer of this stream
public Sgss_File_Writer getWriter ()
Puts the specified bytes at the end of this stream
string $bytes
Bytes to put into the stream
public int put (string $bytes)
Returns the size of the stream in byte
public int size ()