Added feature #15998: Create a new API to send mails based on SwiftMailer to replace...
[Packages/TYPO3.CMS.git] / typo3 / contrib / swiftmailer / classes / Swift / StreamFilter.php
1 <?php
2
3 /*
4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11 /**
12 * Processes bytes as they pass through a stream and performs filtering.
13 * @package Swift
14 * @author Chris Corbyn
15 */
16 interface Swift_StreamFilter
17 {
18
19 /**
20 * Based on the buffer given, this returns true if more buffering is needed.
21 * @param mixed $buffer
22 * @return boolean
23 */
24 public function shouldBuffer($buffer);
25
26 /**
27 * Filters $buffer and returns the changes.
28 * @param mixed $buffer
29 * @return mixed
30 */
31 public function filter($buffer);
32
33 }