/framework/vendor/swift/lib/classes/Swift/KeyCache/KeyCacheInputStream.php

http://zoop.googlecode.com/ · PHP · 53 lines · 9 code · 9 blank · 35 comment · 0 complexity · 36635953c956471a6cfe6b2464439668 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. //@require 'Swift/KeyCache.php';
  10. //@require 'Swift/InputByteStream.php';
  11. /**
  12. * Writes data to a KeyCache using a stream.
  13. * @package Swift
  14. * @subpackage KeyCache
  15. * @author Chris Corbyn
  16. */
  17. interface Swift_KeyCache_KeyCacheInputStream extends Swift_InputByteStream
  18. {
  19. /**
  20. * Set the KeyCache to wrap.
  21. * @param Swift_KeyCache $keyCache
  22. */
  23. public function setKeyCache(Swift_KeyCache $keyCache);
  24. /**
  25. * Set the nsKey which will be written to.
  26. * @param string $nsKey
  27. */
  28. public function setNsKey($nsKey);
  29. /**
  30. * Set the itemKey which will be written to.
  31. * @param string $itemKey
  32. */
  33. public function setItemKey($itemKey);
  34. /**
  35. * Specify a stream to write through for each write().
  36. * @param Swift_InputByteStream $is
  37. */
  38. public function setWriteThroughStream(Swift_InputByteStream $is);
  39. /**
  40. * Any implementation should be cloneable, allowing the clone to access a
  41. * separate $nsKey and $itemKey.
  42. */
  43. public function __clone();
  44. }