classes/phing/util/FileUtils.php
public static function getChainedReader(Reader $in, &$filterChains, Project $project)
    {
        if (!empty($filterChains)) {
            $crh = new ChainReaderHelper();
            $crh->setBufferSize(65536); // 64k buffer, but isn't being used (yet?)
            $crh->setPrimaryReader($in);
            $crh->setFilterChains($filterChains);
            $crh->setProject($project);
            $rdr = $crh->getAssembledReader();

            return $rdr;
        } else {
            return $in;
        }
    }
public static function getChainedReader(Reader $in, &$filterChains, Project $project)
    {
        if (!empty($filterChains)) {
            $crh = new ChainReaderHelper();
            $crh->setBufferSize(65536); // 64k buffer, but isn't being used (yet?)
            $crh->setPrimaryReader($in);
            $crh->setFilterChains($filterChains);
            $crh->setProject($project);
            $rdr = $crh->getAssembledReader();

            return $rdr;
        } else {
            return $in;
        }
    }
public static function getChainedReader ( Reader $ in , & $ filterChains , Project $ project ) { if ( ! empty ( $ filterChains ) ) { $ crh = new ChainReaderHelper ( ) ; $ crh -> setBufferSize ( 65536 ) ; // 64k buffer, but isn't being used (yet?) $ crh -> setPrimaryReader ( $ in ) ; $ crh -> setFilterChains ( $ filterChains ) ; $ crh -> setProject ( $ project ) ; $ rdr = $ crh -> getAssembledReader ( ) ; return $ rdr ; } else { return $ in ; } }
Returns a new Reader with filterchains applied.  If filterchains are empty,
simply returns passed reader.

@param  Reader $in Reader to modify (if appropriate).
@param  array   &$filterChains filter chains to apply.
@param  Project $project
@return Reader  Assembled Reader (w/ filter chains).
Returns a new Reader with filterchains applied . If filterchains are empty simply returns passed reader .