# system/io/Writer.php

Abstract class for writing character streams.

Package
  phing.system.io

## \Writer
jump to top

Package: phing\system\io

Abstract class for writing character streams.

Children
  \LogWriter
  \BufferedWriter
  \OutputStreamWriter

### Methods

`close( ) : void`
abstract

Close the stream.

Throws

Exception | Description
--- | ---
\IOException | - if there is an error closing stream.

`flush( ) : void`

Flush the stream, if supported by the stream.

`getResource( ) : string`
abstract

Returns a string representation of resource filename, url, etc. that is being written to.

Returns

Type | Description
--- | ---
string |

`write( string $buf, int $off = null, int $len = null ) : void`
abstract

Writes data to output stream.

Parameters

Name | Type | Description
--- | --- | ---
$buf | string |
$off | int |
$len | int |

Documentation was generated by DocBlox 0.15.1.