12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
-
- include_once 'phing/system/io/PhingFile.php';
- require_once 'phing/system/io/Writer.php';
- class OutputStreamWriter extends Writer {
-
- protected $outStream;
-
-
- public function __construct(OutputStream $outStream) {
- $this->outStream = $outStream;
- }
-
-
- public function close() {
- return $this->outStream->close();
- }
-
-
- public function write($buf, $off = null, $len = null) {
- return $this->outStream->write($buf, $off, $len);
- }
-
-
- public function flush() {
- $this->outStream->flush();
- }
-
-
- public function getResource() {
- return $this->outStream->__toString();
- }
- }
|