KeyCacheInputStream.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. public function setKeyCache(Swift_KeyCache $keyCache);
  20. /**
  21. * Set the nsKey which will be written to.
  22. *
  23. * @param string $nsKey
  24. */
  25. public function setNsKey($nsKey);
  26. /**
  27. * Set the itemKey which will be written to.
  28. *
  29. * @param string $itemKey
  30. */
  31. public function setItemKey($itemKey);
  32. /**
  33. * Specify a stream to write through for each write().
  34. */
  35. public function setWriteThroughStream(Swift_InputByteStream $is);
  36. /**
  37. * Any implementation should be cloneable, allowing the clone to access a
  38. * separate $nsKey and $itemKey.
  39. */
  40. public function __clone();
  41. }