123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?php
-
- include_once 'phing/system/io/PhingFile.php';
- include_once 'phing/system/io/Reader.php';
- class InputStreamReader extends Reader {
-
-
- protected $inStream;
-
-
- public function __construct(InputStream $inStream) {
- $this->inStream = $inStream;
- }
-
-
- public function close() {
- return $this->inStream->close();
- }
-
-
- public function skip($n) {
- return $this->inStream->skip($n);
- }
-
-
- public function read($len = null) {
- return $this->inStream->read($len);
- }
-
-
- public function mark() {
- $this->inStream->mark();
- }
-
-
- public function markSupported() {
- return $this->inStream->markSupported();
- }
-
-
- public function reset() {
- $this->inStream->reset();
- }
-
- public function eof() {
- return $this->inStream->eof();
- }
-
-
- public function readInto(&$rBuffer) {
- return $this->inStream->readInto($rBuffer);
- }
-
-
- public function getResource() {
- return $this->inStream->__toString();
- }
- }
|