KeyCacheInputStream.php 1.1 KB

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