Wrapper class for PHP stream that supports read operations.
| package | phing.system.io |
|---|
__construct(resource $stream)
resourceConfigured PHP stream for writing.
__toString() : string
stringclose()
\IOException |
if stream cannot be closed (note that calling close() on an already-closed stream will not raise an exception) |
|---|
eof() : boolean
booleanmark()
\IOException |
- if the underlying stream doesn't support this method. |
|---|
markSupported() : boolean
booleanread(int $len) : string
intNum chars to read. If not specified this stream will read until EOF.
stringchars 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. |
|---|
TRUEon success.reset()
\IOException |
- if the underlying stream doesn't support this method. |
|---|
skip(int $n)
int
$currentPosition : int
$mark : int
$stream : resource