TYPO3 API  SVNRelease
StreamFilter.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of SwiftMailer.
00005  * (c) 2004-2009 Chris Corbyn
00006  *
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
00009  */
00010 
00011 /**
00012  * Processes bytes as they pass through a stream and performs filtering.
00013  * @package Swift
00014  * @author Chris Corbyn
00015  */
00016 interface Swift_StreamFilter
00017 {
00018 
00019   /**
00020    * Based on the buffer given, this returns true if more buffering is needed.
00021    * @param mixed $buffer
00022    * @return boolean
00023    */
00024   public function shouldBuffer($buffer);
00025 
00026   /**
00027    * Filters $buffer and returns the changes.
00028    * @param mixed $buffer
00029    * @return mixed
00030    */
00031   public function filter($buffer);
00032 
00033 }