/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. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Processes bytes as they pass through a stream and performs filtering.
  11. * @package Swift
  12. * @author Chris Corbyn
  13. */
  14. interface Swift_StreamFilter
  15. {
  16. /**
  17. * Based on the buffer given, this returns true if more buffering is needed.
  18. * @param mixed $buffer
  19. * @return boolean
  20. */
  21. public function shouldBuffer($buffer);
  22. /**
  23. * Filters $buffer and returns the changes.
  24. * @param mixed $buffer
  25. * @return mixed
  26. */
  27. public function filter($buffer);
  28. }