system/io/OutputStreamWriter.php
Writer class for OutputStream objects.
Unlike the Java counterpart, this class does not (yet) handle character set transformations. This will be an important function of this class with move to supporting PHP6.
- Package
- phing.system.io
\OutputStreamWriter
Package: phing\system\io
Writer class for OutputStream objects.
Unlike the Java counterpart, this class does not (yet) handle character set transformations. This will be an important function of this class with move to supporting PHP6.
- Parent(s)
- \Writer
- Children
- \FileWriter
Properties
Methods

__construct(
\OutputStream $outStream
)
:
voidConstruct a new OutputStreamWriter.
Parameters
| Name | Type | Description |
|---|---|---|
| $outStream | \OutputStream | OutputStream to write to |

close(
)
:
voidClose the stream.
Throws
| Exception | Description |
|---|---|
| \IOException | - if there is an error closing stream. |

getResource(
)
:
stringGets a string representation of attached stream resource.
Returns
| Type | Description |
|---|---|
| string | String representation of output stream |