Convenience class for writing files.

author | Hans Lellelid
version | $Id$
package | phing.system.io

### Methods

## __construct()

    __construct(\Writer $writer, $buffsize)

### Parameters

#### $writer

#### $buffsize

## Close attached stream.

    close()

### Exceptions

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

## Flush the stream, if supported by the stream.

    flush()

## Returns a string representation of resource filename, url, etc.

    getResource() : string

that is being written to.

### Returns

`string`

## newLine()

    newLine()

## Writes data to output stream.

    write(string $buf, int $off, int $len)

### Parameters

#### $buf

`string`

#### $off

`int`

#### $len

`int`

### Properties

##

    $bufferSize

## The Writer we are buffering output to.

    $out : \Writer