Input stream subclass for file streams.
| package | phing.system.io |
|---|
__construct(\PhingFile | string $file, boolean $append)
booleanWhether to append (ignored)
\Exception |
- if invalid argument specified. |
|---|---|
\IOException |
- if unable to open file. |
__toString() : string
stringclose()
| 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() |
|---|
booleanmark()
| inherited_from | \InputStream::mark() |
|---|
\IOException |
- if the underlying stream doesn't support this method. |
|---|
markSupported() : boolean
booleanTRUEread(int $len) : string
| inherited_from | \InputStream::read() |
|---|
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 |
|---|---|
| inherited_from | \InputStream::readInto() |
string&$rBuffer String variable where read contents will be put.
\IOException |
- if there is an error reading from stream. |
|---|
TRUEon 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 |
|---|