diff options
author | ctrlaltca <> | 2013-01-02 14:42:24 +0000 |
---|---|---|
committer | ctrlaltca <> | 2013-01-02 14:42:24 +0000 |
commit | edf2251aca60a970e822079d23933e5b70b26571 (patch) | |
tree | 366b6688efbb03f20f47268bea57859cea673c70 /buildscripts/phing/classes/phing/system/io/BufferedWriter.php | |
parent | 8e5f2510bd577e15095e46afc7d0ba6808549bf8 (diff) |
backported all related changes up to 3229 to branch/3.2
Diffstat (limited to 'buildscripts/phing/classes/phing/system/io/BufferedWriter.php')
-rwxr-xr-x[-rw-r--r--] | buildscripts/phing/classes/phing/system/io/BufferedWriter.php | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/buildscripts/phing/classes/phing/system/io/BufferedWriter.php b/buildscripts/phing/classes/phing/system/io/BufferedWriter.php index c982db28..88520ce9 100644..100755 --- a/buildscripts/phing/classes/phing/system/io/BufferedWriter.php +++ b/buildscripts/phing/classes/phing/system/io/BufferedWriter.php @@ -1,6 +1,6 @@ <?php /* - * $Id: BufferedWriter.php,v 1.10 2005/05/26 13:10:52 mrook Exp $ + * $Id: 8a155d3b04ca1a938bc22f59aba8509e0910ad33 $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT @@ -25,7 +25,7 @@ include_once 'phing/system/io/Writer.php'; * Convenience class for writing files. * * @author Hans Lellelid <hans@xmpl.org> - * @version $Revision: 1.10 $ + * @version $Id$ * @package phing.system.io */ class BufferedWriter extends Writer { @@ -36,37 +36,36 @@ class BufferedWriter extends Writer { private $bufferSize = 0; /** - * The Writer we are buffering output to. + * @var Writer The Writer we are buffering output to. */ private $out; - function __construct(Writer $writer, $buffsize = 8192) { + public function __construct(Writer $writer, $buffsize = 8192) { $this->out = $writer; $this->bufferSize = $buffsize; } - function write($buf, $off = null, $len = null) { + public function write($buf, $off = null, $len = null) { return $this->out->write($buf, $off, $len); } - function newLine() { - $this->write(Phing::getProperty('line.separator')); + public function newLine() { + $this->write(PHP_EOL); } - function getResource() { + public function getResource() { return $this->out->getResource(); } - - function reset() { - return $this->out->reset(); - } - function close() { - return $this->out->close(); + public function flush() { + $this->out->flush(); } - function open() { - return $this->out->open(); + /** + * Close attached stream. + */ + public function close() { + return $this->out->close(); } } |