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: * Based on the buffer given, this returns true if more buffering is needed.
20: * @param mixed $buffer
21: * @return boolean
22: */
23: public function shouldBuffer($buffer);
24:
25: /**
26: * Filters $buffer and returns the changes.
27: * @param mixed $buffer
28: * @return mixed
29: */
30: public function filter($buffer);
31: }
32: