Wrapper class for PHP stream that supports read operations.
package | phing.system.io |
---|
__construct(resource $stream)
resource
Configured PHP stream for writing.
__toString() : string
string
close()
\IOException |
if stream cannot be closed (note that calling close() on an already-closed stream will not raise an exception) |
---|
eof() : boolean
boolean
mark()
\IOException |
- if the underlying stream doesn't support this method. |
---|
markSupported() : boolean
boolean
read(int $len) : string
int
Num chars to read. If not specified this stream will read until EOF.
string
chars read or -1 if eof.readInto(string $rBuffer) : TRUE
Stream is closed after read.
author | Charlie Killian, charlie@tizac.com |
---|---|
deprecated | - Instead, use the read() method or a BufferedReader. |
string
&$rBuffer String variable where read contents will be put.
\IOException |
- if there is an error reading from stream. |
---|
TRUE
on success.reset()
\IOException |
- if the underlying stream doesn't support this method. |
---|
skip(int $n)
int
$currentPosition : int
$mark : int
$stream : resource