classes/phing/filters/StripLineBreaks.php
public function read($len = null)
    {
        if (!$this->getInitialized()) {
            $this->_initialize();
            $this->setInitialized(true);
        }

        $buffer = $this->in->read($len);
        if ($buffer === -1) {
            return -1;
        }

        $buffer = preg_replace("/[" . $this->_lineBreaks . "]/", '', $buffer);

        return $buffer;
    }
public function read($len = null)
    {
        if (!$this->getInitialized()) {
            $this->_initialize();
            $this->setInitialized(true);
        }

        $buffer = $this->in->read($len);
        if ($buffer === -1) {
            return -1;
        }

        $buffer = preg_replace("/[" . $this->_lineBreaks . "]/", '', $buffer);

        return $buffer;
    }
public function read ( $ len = null ) { if ( ! $ this -> getInitialized ( ) ) { $ this -> _initialize ( ) ; $ this -> setInitialized ( true ) ; } $ buffer = $ this -> in -> read ( $ len ) ; if ( $ buffer === - 1 ) { return - 1 ; } $ buffer = preg_replace ( "/[" . $ this -> _lineBreaks . "]/" , '' , $ buffer ) ; return $ buffer ; }
Returns the filtered stream, only including
characters not in the set of line-breaking characters.

@param  null $len
@return mixed the resulting stream, or -1
if the end of the resulting stream has been reached.

@exception IOException if the underlying stream throws an IOException
during reading
Returns the filtered stream only including characters not in the set of line - breaking characters .