system/io/BufferedWriter.php

Show: inherited
Table of Contents

Convenience class for writing files.

Author
Hans Lellelid  
Package
phing.system.io  
Version
$Id$  

\BufferedWriter

Package: phing\system\io

Convenience class for writing files.

Parent(s)
\Writer
Author
Hans Lellelid  
Version
$Id$  

Properties

Propertyprivate  $bufferSize= '0'

The size of the buffer in kb.

Default value0Details
Type
n/a
Propertyprivate\Writer  $out= ''

The Writer we are buffering output to.
Details
Type
\Writer

Methods

methodpublic__construct(  $writer,  $buffsize = 8192 ) : void

Parameters
Name Type Description
$writer
$buffsize
methodpublicclose( ) : void

Close attached stream.

Throws
Exception Description
\IOException - if there is an error closing stream.
methodpublicflush( ) : void

Flush the stream, if supported by the stream.

methodpublicgetResource( ) : string

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

Returns
Type Description
string
methodpublicnewLine( ) : void

methodpublicwrite( string $buf, int $off = null, int $len = null ) : void

Writes data to output stream.

Parameters
Name Type Description
$buf string
$off int
$len int
Documentation was generated by DocBlox 0.18.1.