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()
throws |
if stream cannot be closed (note that calling close() on an already-closed stream will not raise an exception) |
---|---|
eof() : boolean
boolean
mark()
throws |
|
---|---|
markSupported() : boolean
boolean
read(integer $len = null) : string
integer
Num chars to read. If not specified this stream will read until EOF.
string
chars read or -1 if eof.
readInto( &$rBuffer) : TRUE
author |
Charlie Killian, charlie@tizac.com |
---|---|
throws |
|
deprecated |
|
TRUE
on success.
reset()
throws |
|
---|---|
skip(integer $n)
integer
stream : resource
var |
The attached PHP stream. |
---|
resource
currentPosition : integer
var |
Position of stream cursor. |
---|
integer
mark : integer
var |
Marked position of stream cursor. |
---|
integer