Input stream subclass for file streams.
package | phing.system.io |
---|
__construct(\PhingFile | string $file, boolean $append)
boolean
Whether to append (ignored)
\Exception |
- if invalid argument specified. |
---|---|
\IOException |
- if unable to open file. |
__toString() : string
string
close()
inherited_from | \InputStream::close() |
---|
\IOException |
if stream cannot be closed (note that calling close() on an already-closed stream will not raise an exception) |
---|
eof() : boolean
inherited_from | \InputStream::eof() |
---|
boolean
mark()
inherited_from | \InputStream::mark() |
---|
\IOException |
- if the underlying stream doesn't support this method. |
---|
markSupported() : boolean
boolean
TRUEread(int $len) : string
inherited_from | \InputStream::read() |
---|
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 |
---|---|
inherited_from | \InputStream::readInto() |
string
&$rBuffer String variable where read contents will be put.
\IOException |
- if there is an error reading from stream. |
---|
TRUE
on success.reset()
inherited_from | \InputStream::reset() |
---|
\IOException |
- if the underlying stream doesn't support this method. |
---|
skip(int $n)
inherited_from | \InputStream::skip() |
---|
int
$currentPosition : int
inherited_from | \InputStream::$$currentPosition |
---|
$file : \PhingFile
$mark : int
inherited_from | \InputStream::$$mark |
---|
$stream : resource
inherited_from | \InputStream::$$stream |
---|