classes/phing/filters/StripWhitespace.php
Strips whitespace from [php] files using PHP stripwhitespace() method.
- Extends from
- \BaseFilterReader
- Implements
- \ChainableReader
- see
- \FilterReader
- author
- Hans Lellelid, hans@velum.net
- package
- phing.filters
- todo
- -c use new PHP functions to perform this instead of regex.
- version
- $Revision: 552 $ $Date: 2009-08-29 14:18:13 +0200 (Sat, 29 Aug 2009) $
Properties
Methods



chain(
\reader $reader
)
:
\aCreates a new StripWhitespace using the passed in
Reader for instantiation.
Parameters
| Name |
Type |
Description |
| $reader |
\reader |
A Reader object providing the underlying stream. Must not be null.
|
Returns



read(
$len
=
null
)
:
\theReturns the stream without Php comments and whitespace.
Parameters
| Name |
Type |
Description |
| $len |
|
|
Returns
Details
- throws
- if the underlying stream throws an IOException during reading