KeyCacheInputStream.php 1.2KB

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