diff options
Diffstat (limited to 'buildscripts/phing/classes/phing/system/io/Writer.php')
-rw-r--r-- | buildscripts/phing/classes/phing/system/io/Writer.php | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/buildscripts/phing/classes/phing/system/io/Writer.php b/buildscripts/phing/classes/phing/system/io/Writer.php index 5e1a69b9..86fa67e9 100644 --- a/buildscripts/phing/classes/phing/system/io/Writer.php +++ b/buildscripts/phing/classes/phing/system/io/Writer.php @@ -1,6 +1,6 @@ <?php /* - * $Id: Writer.php,v 1.6 2005/05/26 13:10:52 mrook Exp $ + * $Id: 1dbdd04d4483e88c8e409811babeaa83c47f8418 $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT @@ -20,29 +20,34 @@ */ /** - * Abstract class for writing character streams. + * Abstract class for writing character streams. + * * @package phing.system.io */ abstract class Writer { - + + /** + * Writes data to output stream. + * @param string $buf + * @param int $off + * @param int $len + */ abstract public function write($buf, $off = null, $len = null); - - abstract public function reset(); + /** + * Close the stream. + * @throws IOException - if there is an error closing stream. + */ abstract public function close(); - abstract public function open(); - - public function mark() {} - - public function ready() {} - - public function markSupported() {} + /** + * Flush the stream, if supported by the stream. + */ + public function flush() {} /** - * Returns the filename, url, etc. that is being written to. + * Returns a string representation of resource filename, url, etc. that is being written to. * @return string */ - abstract function getResource(); + abstract public function getResource(); } -?> |