PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/vendor/swift/lib/classes/Swift/StreamFilter.php

http://zoop.googlecode.com/
PHP | 33 lines | 6 code | 5 blank | 22 comment | 0 complexity | 7e5d400eed73403381ecc255c8325feb MD5 | raw file
 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 */
16interface 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}