Output stream subclass for file streams.
| package | phing.system.io |
|---|
__construct(mixed $file, boolean $append)
mixed
booleanWhether to append bytes to end of file rather than beginning.
\Exception |
- if invalid argument specified. |
|---|---|
\IOException |
- if unable to open file. |
__toString() : string
stringclose() : void
| inherited_from | \OutputStream::close() |
|---|
\IOException |
if cannot close stream (note that attempting to close an already closed stream will not raise an IOException) |
|---|
flush()
| inherited_from | \OutputStream::flush() |
|---|
\IOException |
if unable to flush data (e.g. stream is not open). |
|---|
write(string $buf, int $off, int $len) : void
| inherited_from | \OutputStream::write() |
|---|
stringBinary/character data to write.
int(Optional) offset.
int(Optional) number of bytes/chars to write.
\IOException |
- if there is an error writing to stream |
|---|
$stream : resource
| inherited_from | \OutputStream::$$stream |
|---|