[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/vendor/phing/filters/util/ -> ChainReaderHelper.php (sommaire)

(pas de description)

Poids: 184 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ChainReaderHelper:: (6 méthodes):
  setPrimaryReader()
  setProject()
  getProject()
  setBufferSize()
  setFilterChains()
  getAssembledReader()


Classe: ChainReaderHelper  - X-Ref

Process a FilterReader chain.

Here, the interesting method is 'getAssembledReader'.
The purpose of this one is to create a simple Reader object which
apply all filters on another primary Reader object.

For example : In copyFile (phing.util.FileUtils) the primary Reader
is a FileReader object (more accuratly, a BufferedReader) previously
setted for the source file to copy. So, consider this filterchain :

<filterchain>
<stripphpcomments />
<linecontains>
<contains value="foo">
</linecontains>
<tabtospaces tablength="8" />
</filterchain>

getAssembledReader will return a Reader object wich read on each
of these filters. Something like this : ('->' = 'which read data from') :

[TABTOSPACES] -> [LINECONTAINS] -> [STRIPPHPCOMMENTS] -> [FILEREADER]
(primary reader)

So, getAssembledReader will return the TABTOSPACES Reader object. Then
each read done with this Reader object will follow this path.

Hope this explanation is clear :)

TODO: Implement the classPath feature.

setPrimaryReader(Reader $reader)   X-Ref
Pas de description

setProject(Project $project)   X-Ref
Pas de description

getProject()   X-Ref
Pas de description

setBufferSize($size)   X-Ref
Pas de description

setFilterChains(&$fchain)   X-Ref
Pas de description

getAssembledReader()   X-Ref
Pas de description



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