[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/system/io/ -> FilterReader.php (source)

   1  <?php
   2  /*
   3   *  $Id: FilterReader.php 3076 2006-12-18 08:52:12Z fabien $
   4   *
   5   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   6   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   7   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   8   * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
   9   * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  10   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  11   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  12   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  13   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  14   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  15   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  16   *
  17   * This software consists of voluntary contributions made by many individuals
  18   * and is licensed under the LGPL. For more information please see
  19   * <http://phing.info>. 
  20   */
  21  
  22  include_once 'phing/system/io/Reader.php';
  23  
  24  /**
  25   * Convenience class for reading files. The constructor of this
  26   *  @package   phing.system.io
  27   *
  28   * TODO: All filters should be ProjectComponents, too!
  29   */
  30  class FilterReader extends Reader {
  31      
  32      protected $in;
  33      
  34      function __construct(Reader $in = null) {
  35          $this->in = $in;
  36          //parent::__construct(new FileReader($file, $exclusive));
  37      }
  38      
  39      public function setReader(Reader $in) {
  40          $this->in = $in;
  41      }
  42      
  43      public function skip($n) {
  44          return $this->in->skip($n);
  45      }
  46      
  47      /**
  48       * Read data from source.
  49       * FIXME: Clean up this function signature, as it a) params aren't being used
  50       * and b) it doesn't make much sense.
  51       */
  52      public function read($len = null) {
  53          return $this->in->read($len);
  54      }
  55  
  56      public function reset() {
  57          return $this->in->reset();
  58      }
  59      
  60      public function close() {
  61          return $this->in->close();
  62      }
  63      
  64      public function open() {
  65          return $this->in->open();
  66      }
  67  
  68      function getResource() {
  69          return $this->in->getResource();
  70      }
  71  }
  72  ?>


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7