KeyCacheInputStream.php 1.1KB

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